Hi,
I didn't know where else to put it so I'll write it here. When randomly looking through a diff on Gerrit I noticed a few mentions of this the following (it wasn't changed in that commit, but shown in the diff context):
» this.performApiAction( action )
» » .then( degrade );
» var deferred = this.performApiAction( this.API_ACTION.SAVE )
» » .then( $.proxy( ... ) );
etc.
.then is literally just this:
then: function( doneFns, failFns, progressfns ) {
deferred.done( doneFns ).fail( failFns ).progress( progressfns ); return this;},
So just use .done(). Even when binding both 'done' and 'fail' at the same time, I'd still recommend using them directly for clarity, but that's just me :)
Version: unspecified
Severity: trivial
URL: https://gerrit.wikimedia.org/r/gitweb?p=mediawiki%2Fextensions%2FWikidataRepo.git&a=search&h=HEAD&st=grep&s=.then