mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-24 03:55:49 +08:00
improve error handling with elements
This commit is contained in:
@@ -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);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user