minor performance improvements

This commit is contained in:
Misko Hevery
2010-07-26 15:32:08 -07:00
parent b2b170099f
commit b288cb08b4
4 changed files with 23 additions and 16 deletions

View File

@@ -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);
});
});