Do jQuery promises match Promises / A +

I read this article , which is based on the famous article by Domenica Denikola . The first one says:

The problem with jQuerys implementation ( up to version 1.9 ) is that it does not respect the second part of the specification: "This function should return a new promise ...", that is, "then" does not return a new promise object when one of the handlers is executed (or fullfillment, failure or move handler).

I found these errors corresponding to this problem:

My question is: what is the current state of this problem? Both are open, so work is still ongoing. But using jquery 2 you can associate promises with .then . So: is jQuery.Promises still implemented broken? Has something changed since version 1.9?

+5
source share
1 answer

Update: As with jQuery 3.0, the answer is yes. jQuery promises are compatible with Promises / A + and can be safely used.


jQuery promises do not currently adhere to the Promises / A + specification, and therefore have some problems , and Domenik's article remains valid.

Thus, active work is done, and jQuery promises will finally be Promises / A + compatible in the next version. He continues to work here is the corresponding request for stretching here too . The last bit of work on it was two days ago.

Funny times indeed.

+8
source

Source: https://habr.com/ru/post/1211696/


All Articles