mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-02 17:26:31 +08:00
The Promises A+ 1.1 spec introduces new constraints that would cause $q to fail, particularly specs 2.3.1 and 2.3.3. Newly satisfied requirements: * "then" functions that return the same fulfilled/rejected promise will fail with a TypeError * Support for edge cases where "then" is a value other than function Full 1.1 spec: https://github.com/promises-aplus/promises-spec/tree/1.1.0 This commit also modifies the adapter to use "resolve" method instead of "fulfill"