Jdlrobson has uploaded a new change for review.
https://gerrit.wikimedia.org/r/236059
Change subject: Hygiene: Use core mw.Api.abort
......................................................................
Hygiene: Use core mw.Api.abort
Change-Id: If48611c3a036a141ddcd9f8a37ccfa97675c0d00
Dependency: Ie614b05fbfbddca38ea201e90053bebdd58da949
---
M resources/mobile.startup/api.js
1 file changed, 0 insertions(+), 21 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend
refs/changes/59/236059/1
diff --git a/resources/mobile.startup/api.js b/resources/mobile.startup/api.js
index 5476509..3c7c671 100644
--- a/resources/mobile.startup/api.js
+++ b/resources/mobile.startup/api.js
@@ -26,27 +26,6 @@
}
mw.Api.call( this, options );
EventEmitter.prototype.initialize.apply( this,
arguments );
- },
- /**
- * @method
- * @param {Object} data Data to be preprocessed and added to
options
- * @param {Object} options Parameters passed to $.ajax()
- * @return {jQuery.Deferred} Object returned by $.ajax()
- */
- ajax: function ( data, options ) {
- var request = mw.Api.prototype.ajax.call( this, data,
options );
- this.requests.push( request );
- return request;
- },
- /**
- * Abort all unfinished requests issued by this Api object.
- * FIXME: move to mw.Api
- * @method
- */
- abort: function () {
- $.each( this.requests, function ( index, request ) {
- request.abort();
- } );
}
} );
api = new Api();
--
To view, visit https://gerrit.wikimedia.org/r/236059
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: If48611c3a036a141ddcd9f8a37ccfa97675c0d00
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits