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

Commit ceaca57

Browse files
committed
revert: perf($parse): don't use reflective calls in generated functions
This reverts commit cbdf0c2. The commit causes tests failures on IE8. I'm not quite sure why and I can't investigate now. Failed build: https://travis-ci.org/angular/angular.js/jobs/30756773
1 parent cbdf0c2 commit ceaca57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/parse.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,7 @@ function getterFn(path, options, fullExp) {
10201020
// we simply dereference 's' on any .dot notation
10211021
? 's'
10221022
// but if we are first then we check locals first, and if so read it first
1023-
: '((k&&k.hasOwnProperty("' + key + '"))?k:s)') + '.' + key + ';\n' +
1023+
: '((k&&k.hasOwnProperty("' + key + '"))?k:s)') + '["' + key + '"]' + ';\n' +
10241024
(options.unwrapPromises
10251025
? 'if (s && s.then) {\n' +
10261026
' pw("' + fullExp.replace(/(["\r\n])/g, '\\$1') + '");\n' +

0 commit comments

Comments
 (0)