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
Iterate the "change" callbacks backwards. Changes to the callbacks by custom binders will cause some parts of the loop to try to call an "undefined" function, or in the weird case, to skip a callback entirely.
if (weakmap[r].callbacks[k] instanceof Array)
{
for(var i=weakmap[r].callbacks[k].length-1;i>=0;i--)
weakmap[r].callbacks[k][i]();
}
if (callbacks[keypath])
{
for(var i=callbacks[keypath].length-1;i>=0;i--)
callbacks[keypath][i]();
}
The text was updated successfully, but these errors were encountered:
milonas115
changed the title
SightGlass Default Adapter Iteration
Sightglass Default Adapter Iteration
Mar 13, 2017
Iterate the "change" callbacks backwards. Changes to the callbacks by custom binders will cause some parts of the loop to try to call an "undefined" function, or in the weird case, to skip a callback entirely.
The text was updated successfully, but these errors were encountered: