mediawiki.api: Remove misleading comment about JSONP
authorBartosz Dziewoński <matma.rex@gmail.com>
Sat, 1 Feb 2014 00:17:10 +0000 (01:17 +0100)
committerOri.livneh <ori@wikimedia.org>
Fri, 28 Feb 2014 07:31:26 +0000 (07:31 +0000)
The non-existent parameter this is discussing has been removed a long
time ago, but the comment somehow stayed.

Change-Id: I3cb4583646a8b85fd2383c7d0917de6f6c414049

resources/mediawiki.api/mediawiki.api.js

index 3032f78..0024f4b 100644 (file)
                        apiPromise = this.get( {
                                        action: 'tokens',
                                        type: type
-                               }, {
-                                       // Due to the API assuming we're logged out if we pass the callback-parameter,
-                                       // we have to disable jQuery's callback system, and instead parse JSON string,
-                                       // by setting 'jsonp' to false.
-                                       // TODO: This concern seems genuine but no other module has it. Is it still
-                                       // needed and/or should we pass this by default?
                                } )
                                .done( function ( data ) {
                                        // If token type is not available for this user,