MCPcopy Create free account
hub / github.com/angular-ui/ui-router / wrapSharedExpression

Function wrapSharedExpression

test/angular/1.3/angular.js:12773–12786  ·  view source on GitHub ↗
(exp)

Source from the content-addressed store, hash-verified

12771 };
12772
12773 function wrapSharedExpression(exp) {
12774 var wrapped = exp;
12775
12776 if (exp.sharedGetter) {
12777 wrapped = function $parseWrapper(self, locals) {
12778 return exp(self, locals);
12779 };
12780 wrapped.literal = exp.literal;
12781 wrapped.constant = exp.constant;
12782 wrapped.assign = exp.assign;
12783 }
12784
12785 return wrapped;
12786 }
12787
12788 return function $parse(exp, interceptorFn, expensiveChecks) {
12789 var parsedExpression, oneTime, cacheKey;

Callers 1

$ParseProviderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected