You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would probably make sense to add the rules to the plugin, although they will be quite distinct from other rules, in that the apply to neither the $ global object, or a $collection. That said "done" and "fail" are quite uncommon names for methods outside of promises.
Using jQuery's .done() or .fail() instead of native JS promises .then() or catch():
contradicts the advice at https://www.mediawiki.org/wiki/Manual:Coding_conventions/JavaScript#Asynchronous_code
led to some nasty bugs in one repo I was working with, for example, this patch
I'd suggest adding something like the below to our jQuery rules. Code below credit Kosta Harlan.
The text was updated successfully, but these errors were encountered: