Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99d70af commit a134122Copy full SHA for a134122
src/ng/parse.js
@@ -995,11 +995,12 @@ function $ParseProvider() {
995
$parseOptions.csp = $sniffer.csp;
996
997
return function(exp, interceptorFn) {
998
- var parsedExpression, oneTime,
999
- cacheKey = (exp = trim(exp));
+ var parsedExpression, oneTime, cacheKey;
1000
1001
switch (typeof exp) {
1002
case 'string':
+ cacheKey = exp = exp.trim();
1003
+
1004
if (cache.hasOwnProperty(cacheKey)) {
1005
parsedExpression = cache[cacheKey];
1006
} else {
0 commit comments