mediawiki.api: Remove check for callback in postWithToken
authorFomafix <fomafix@googlemail.com>
Mon, 6 Oct 2014 19:33:23 +0000 (19:33 +0000)
committerKrinkle <krinklemail@gmail.com>
Tue, 7 Oct 2014 11:44:32 +0000 (11:44 +0000)
Follows-up I0a650fdb4affd394ae419e21d54baf790116f6f7.

Change-Id: I178f68368cc1930e8b9f12afe5c6db7612235c40

resources/src/mediawiki.api/mediawiki.api.js

index b85c8e8..bb0642e 100644 (file)
                postWithToken: function ( tokenType, params, ajaxOptions ) {
                        var api = this;
 
-                       // Do not allow deprecated ok-callback
-                       // FIXME: Remove this check when the deprecated ok-callback is removed in #post
-                       if ( $.isFunction( ajaxOptions ) ) {
-                               ajaxOptions = undefined;
-                       }
-
                        return api.getToken( tokenType, params.assert ).then( function ( token ) {
                                params.token = token;
                                return api.post( params, ajaxOptions ).then(