clean up for better obfuscation

This commit is contained in:
Misko Hevery
2010-08-11 12:04:02 -07:00
parent 3d5719cd44
commit 044ecb91c1
6 changed files with 45 additions and 57 deletions

View File

@@ -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(){}