Skip to content

Commit ed72137

Browse files
committed
trigger binding notify in the same order they are added
1 parent 8ac2162 commit ed72137

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/binding.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ p.removeSub = function (sub) {
4242
*/
4343

4444
p.notify = function () {
45-
var i = this.subs.length
46-
while (i--) {
45+
for (var i = 0, l = this.subs.length; i < l; i++) {
4746
this.subs[i].update()
4847
}
4948
}

0 commit comments

Comments
 (0)