From 1e59822df7366094dbf38b0c4ce0cc979258ad19 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Sat, 26 Mar 2011 16:06:38 -0700 Subject: remove _null and _undefined they have no significant effect on minified and gziped size. in fact they make things worse. file | before | after removal ---------------------------------------- concat | 325415 | 325297 min | 62070 | 62161 min + gzip | 25187 | 25176 The bottom line is that we are getting 0.05% decrease in size after gzip without all of the hassle of using underscores everywhere. --- src/Scope.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Scope.js') diff --git a/src/Scope.js b/src/Scope.js index 7d802a51..c5612c9f 100644 --- a/src/Scope.js +++ b/src/Scope.js @@ -15,7 +15,7 @@ function getter(instance, path, unboundFn) { if (isUndefined(instance) && key.charAt(0) == '$') { var type = angular['Global']['typeOf'](lastInstance); type = angular[type.charAt(0).toUpperCase()+type.substring(1)]; - var fn = type ? type[[key.substring(1)]] : _undefined; + var fn = type ? type[[key.substring(1)]] : undefined; if (fn) { instance = bind(lastInstance, fn, lastInstance); return instance; -- cgit v1.2.3