mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-24 03:55:49 +08:00
minor performance improvements
This commit is contained in:
@@ -30,7 +30,9 @@ Template.prototype = {
|
||||
element = jqLite(element);
|
||||
foreach(this.inits, function(fn) {
|
||||
queue.push(function(scope) {
|
||||
scope.$tryEval(fn, element, element);
|
||||
scope.$tryEval(function(){
|
||||
return fn.call(scope, element);
|
||||
}, element);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user