SIGN IN SIGN UP
angular / angular.js UNCLAIMED

AngularJS - HTML enhanced for web apps!

0 0 0 JavaScript

refactor($q): separate Promise from Deferred

Closes #15064

BREAKING CHANGE:

Previously, the `Deferred` object returned by `$q.defer()` delegated the
`resolve()`, `reject()` and `notify()` methods to `Deferred.prototype`. Thus, it
was possible to modify `Deferred.prototype` and have the changes reflect to all
`Deferred` objects.

This commit removes that delegation, so modifying the above three methods on
`Deferred.prototype` will no longer have an effect on `Deferred` objects.
J
Jason Bedard committed
34434cf528184290ce25fd11066ff8a3fa760519
Parent: cdf3d5e
Committed by Georgios Kalpakas <kalpakas.g@gmail.com> on 10/7/2016, 9:02:25 AM