Use jQuery 3 .catch( fn ) instead of .then( null, fn )
authorFomafix <fomafix@googlemail.com>
Tue, 9 Jan 2018 17:39:01 +0000 (18:39 +0100)
committerFomafix <fomafix@googlemail.com>
Wed, 10 Jan 2018 06:22:05 +0000 (07:22 +0100)
commitc95e5a51344df216785a0259cb07b4fa0a35bfd9
tree546ade303525d8de112b5b3cee854dd59f016591
parent281e4b5f691b8738485d63d515fc0fef89a4ad79
Use jQuery 3 .catch( fn ) instead of .then( null, fn )

https://api.jquery.com/deferred.catch/ Since jQuery 3
deferred.catch( fn ) is an alias to deferred.then( null, fn )

This improves the readability.

Change-Id: I20fa3a1ed5c959ad0639ddf0162b8837fc15c720
resources/src/mediawiki.special/mediawiki.special.apisandbox.js
resources/src/mediawiki/api.js
resources/src/mediawiki/mediawiki.ForeignStructuredUpload.BookletLayout.js
resources/src/mediawiki/mediawiki.js
tests/qunit/suites/resources/mediawiki.api/mediawiki.api.test.js