From ef51e96190b03a92ce0e32a765c1fac4b5ae7eb4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20Dziewo=C5=84ski?= Date: Sat, 1 Feb 2014 01:17:10 +0100 Subject: [PATCH] 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 --- resources/mediawiki.api/mediawiki.api.js | 6 ------ 1 file changed, 6 deletions(-) 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, -- 2.20.1