aboutsummaryrefslogtreecommitdiffstats
path: root/src/Scope.js
diff options
context:
space:
mode:
authorMisko Hevery2010-10-31 11:24:20 -0700
committerMisko Hevery2010-10-31 15:04:30 -0700
commitba5f8ee27f03b3215835bc1e643eb25b8f2e217f (patch)
tree7232b6f3ed54edc0e066c10e91563c6c23dbd89b /src/Scope.js
parent9a532002cf490a3e26a827e2eab9c1c3d834e2b8 (diff)
downloadangular.js-ba5f8ee27f03b3215835bc1e643eb25b8f2e217f.tar.bz2
fix typo, and change a list to string for more efficient compression.
Diffstat (limited to 'src/Scope.js')
-rw-r--r--src/Scope.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Scope.js b/src/Scope.js
index 0c6205a5..40192e16 100644
--- a/src/Scope.js
+++ b/src/Scope.js
@@ -49,11 +49,11 @@ var scopeId = 0,
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",
- "if", "implements", "import", "ininstanceof", "intinterface", "long", "native", "new", $null, "package", "private",
- "protected", "public", "return", "short", "static", "super", "switch", "synchronized", "this", "throw", "throws",
- "transient", "true", "try", "typeof", "var", "volatile", "void", $undefined, "while", "with"],
+ ("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," +
+ "if,implements,import,ininstanceof,intinterface,long,native,new,null,package,private," +
+ "protected,public,return,short,static,super,switch,synchronized,this,throw,throws," +
+ "transient,true,try,typeof,var,volatile,void,undefined,while,with").split(/,/),
function(key){ JS_KEYWORDS[key] = true;}
);
function getterFn(path){