diff options
| author | Lucas Galfasó | 2013-04-25 12:54:28 -0300 |
|---|---|---|
| committer | Pete Bacon Darwin | 2013-04-29 23:02:51 +0100 |
| commit | dcdf4fc78bb22fe040aa800cf37782419d561b1c (patch) | |
| tree | 77f3110ee4429c92b3dc94d595bff69c28e6c35b /src/auto/injector.js | |
| parent | cf38d8c55b6c18f41bb559016005627671e7d795 (diff) | |
| download | angular.js-dcdf4fc78bb22fe040aa800cf37782419d561b1c.tar.bz2 | |
fix(parse): fix context access and double function call
Fix a context duplication and invocation to a previous context when
doing an access modifier function on the result of a function
Currently, when doing `foo().bar()`, `foo` is called twice, the first
time to get the context and the second one for `bar` to get the
underlying object. Then the call to `bar` is called using the second
instance as self
This is equivalent to doing:
```
var instance1 = foo();
var instance2 = foo();
instance2.bar.apply(instance1);
```
Closes #2496
Diffstat (limited to 'src/auto/injector.js')
0 files changed, 0 insertions, 0 deletions
