yui/yui3 — pull request #671 by juandopazo (2013-04-24 16:19:33+00:00)
Title: Promise performance and behavior tweaks

This pull request introduces two changes to Promises:

* Refactored `_wrap` and `_notify` so that `Y.soon` is only used when needed
* Changed the value of `this` inside callbacks to match the Promises A+ spec

I also included a test for the change to the value of `this` that tries to go into strict mode and checks the value accordingly. But I haven't seen anything like it in YUI so far. Is it a good idea to force strict mode for testing?

@ls_n, would you like to discuss here or in yui-contrib possible changes to the use of `promise.constructor` and introducing `resolver.resolve()`?