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
The following test breaks. destroyed is triggered once, for the first trigger, but not the second one. Removing the .reverse() call will cause the test to work.
test("model list destroy after calling reverse",function(){expect(2);varmap=newcan.Model({name: "map1"})varmap2=newcan.Model({name: "map2"});varlist=newcan.Model.List([map,map2]);list.bind('destroyed',function(ev){ok(true,'trigger destroyed')})can.trigger(map,'destroyed');list.reverse();can.trigger(map2,'destroyed');});
Reverse is calling .replace and replacing the contents of the list with the same items. So this bug might be because .replace isn't setting up the bubbling correctly.
The text was updated successfully, but these errors were encountered:
The following test breaks.
destroyed
is triggered once, for the first trigger, but not the second one. Removing the .reverse() call will cause the test to work.Reverse is calling .replace and replacing the contents of the list with the same items. So this bug might be because .replace isn't setting up the bubbling correctly.
The text was updated successfully, but these errors were encountered: