trigger binding notify in the same order they are added

This commit is contained in:
Evan You 2014-10-27 14:42:19 -04:00
parent 8ac21629c0
commit ed72137138
1 changed files with 1 additions and 2 deletions

View File

@ -42,8 +42,7 @@ p.removeSub = function (sub) {
*/
p.notify = function () {
var i = this.subs.length
while (i--) {
for (var i = 0, l = this.subs.length; i < l; i++) {
this.subs[i].update()
}
}