mediawiki.action.edit.preview: Remove spurious 'return'
authorBartosz Dziewoński <matma.rex@gmail.com>
Mon, 28 Sep 2015 12:33:27 +0000 (14:33 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Wed, 30 Sep 2015 13:49:57 +0000 (13:49 +0000)
Retuning another Promise from a .done() callback does nothing, it's
only meaningful for .then(). Looking at other code, the .done() rather
than .then() was intended, the 'return' wasn't.

Change-Id: I1022ba45b8f422a626246fa38c4fe81428acb3bc

resources/src/mediawiki.action/mediawiki.action.edit.preview.js

index aeef453..6d0175e 100644 (file)
@@ -94,7 +94,7 @@
                        postData.onlypst = true;
                        request = api.post( postData );
                        request.done( function ( response ) {
-                               return api.post( {
+                               api.post( {
                                        action: 'query',
                                        indexpageids: true,
                                        prop: 'revisions',