improve error handling with elements

This commit is contained in:
Misko Hevery
2010-05-30 16:34:59 -07:00
parent 0d87208553
commit c7d64f6d12
5 changed files with 14 additions and 16 deletions

View File

@@ -53,14 +53,8 @@ function expressionCompile(exp){
parser.assertAllConsumed();
compileCache[exp] = expFn;
}
return parserNewScopeAdapter(expFn);
}
// return expFn
// TODO(remove this hack)
function parserNewScopeAdapter(fn) {
return function(){
return fn(this);
return expFn(this);
};
}