diff options
Diffstat (limited to 'src/Scope.js')
| -rw-r--r-- | src/Scope.js | 9 | 
1 files changed, 4 insertions, 5 deletions
diff --git a/src/Scope.js b/src/Scope.js index 86d5bc14..30e56915 100644 --- a/src/Scope.js +++ b/src/Scope.js @@ -44,9 +44,10 @@ function setter(instance, path, value){  }  /////////////////////////////////// - -var getterFnCache = {}; -var JS_KEYWORDS = {}; +var scopeId = 0; +    getterFnCache = {}, +    compileCache = {}, +    JS_KEYWORDS = {};  foreach(     ["abstract", "boolean", "break", "byte", "case", "catch", "char", "class", "const", "continue", "debugger", "default",      "delete", "do", "double", "else", "enum", "export", "extends", "false", "final", "finally", "float", "for", "function", "goto", @@ -88,7 +89,6 @@ function getterFn(path){  /////////////////////////////////// -var compileCache = {};  function expressionCompile(exp){    if (typeof exp === 'function') return exp;    var fn = compileCache[exp]; @@ -108,7 +108,6 @@ function errorHandlerFor(element, error) {    elementError(element, NG_EXCEPTION, isDefined(error) ? toJson(error) : error);  } -var scopeId = 0;  function createScope(parent, services, existing) {    function Parent(){}    function API(){}  | 
