From: Bartosz DziewoƄski Date: Sat, 1 Feb 2014 00:17:10 +0000 (+0100) Subject: mediawiki.api: Remove misleading comment about JSONP X-Git-Tag: 1.31.0-rc.0~16789 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=ef51e96190b03a92ce0e32a765c1fac4b5ae7eb4;p=lhc%2Fweb%2Fwiklou.git mediawiki.api: Remove misleading comment about JSONP The non-existent parameter this is discussing has been removed a long time ago, but the comment somehow stayed. Change-Id: I3cb4583646a8b85fd2383c7d0917de6f6c414049 --- diff --git a/resources/mediawiki.api/mediawiki.api.js b/resources/mediawiki.api/mediawiki.api.js index 3032f78f08..0024f4b06b 100644 --- a/resources/mediawiki.api/mediawiki.api.js +++ b/resources/mediawiki.api/mediawiki.api.js @@ -234,12 +234,6 @@ 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,