Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 99d70af

Browse files
committed
style($parse): rename variables in generated code so that code is more readable
1 parent 6acea11 commit 99d70af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ng/parse.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -912,12 +912,12 @@ function getterFn(path, options, fullExp) {
912912
// we simply dereference 's' on any .dot notation
913913
? 's'
914914
// but if we are first then we check locals first, and if so read it first
915-
: '((k&&k.hasOwnProperty("' + key + '"))?k:s)') + '.' + key + ';\n';
915+
: '((l&&l.hasOwnProperty("' + key + '"))?l:s)') + '.' + key + ';\n';
916916
});
917917
code += 'return s;';
918918

919919
/* jshint -W054 */
920-
var evaledFnGetter = new Function('s', 'k', code); // s=scope, k=locals
920+
var evaledFnGetter = new Function('s', 'l', code); // s=scope, l=locals
921921
/* jshint +W054 */
922922
evaledFnGetter.toString = valueFn(code);
923923
fn = evaledFnGetter;

0 commit comments

Comments
 (0)