build-your-own-angularjs
build-your-own-angularjs copied to clipboard
P37
Scope.prototype.$applyAsync = function(expr) { var self = this; self.$$applyAsyncQueue.push(function() { self.$eval(expr); }); }; // instead of });