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

Re-work $q a bit to better support decorators #3659

Closed
dcherman opened this issue Aug 19, 2013 · 1 comment
Closed

Re-work $q a bit to better support decorators #3659

dcherman opened this issue Aug 19, 2013 · 1 comment

Comments

@dcherman
Copy link
Contributor

Currently, $q uses the defer() function in several places rather than referencing something like $q.defer()

This causes problems when you try to decorate promises because internally, $q is not calling the defer method that's defined/overriden in a decorator.

http://jsfiddle.net/3V2Xn/

@lgalfaso
Copy link
Contributor

lgalfaso commented Jan 2, 2015

With 1.3 $q uses prototypes for promises, so this is already possible

@lgalfaso lgalfaso closed this as completed Jan 2, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants