You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If deliverChangeRecords method was called from an observer, it should not try to deliver the changes which were sent to the observer.
Test case:
it("should not deliver changes already being under delivery",function(done){varcount=0;varobj={value: 1};varcallback=function(){count++;if(count>1){done(newError("deliverChangeRecords should not deliver same changes more then once!"));return;}Object.deliverChangeRecords(callback);};Object.observe(obj,callback);obj.value++;setTimeout(function(){done();},10);});
Note: this test case works fine under npm, but fails under FF and IE.
If
deliverChangeRecords
method was called from an observer, it should not try to deliver the changes which were sent to the observer.Test case:
Note: this test case works fine under npm, but fails under FF and IE.
The fix is very simple.
Here https://github.com/MaxArt2501/object-observe/blob/master/dist/object-observe.js#L514
replace:
with:
The text was updated successfully, but these errors were encountered: