r107778 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107777‎ | r107778 | r107779 >
Date:16:54, 1 January 2012
Author:krinkle
Status:ok
Tags:
Comment:
[mediawiki.api] Fix typo that was made consistently.
* Follows-up r107011
Modified paths:
  • /trunk/phase3/resources/mediawiki/mediawiki.api.js (modified) (history)

Diff [purge]

Index: trunk/phase3/resources/mediawiki/mediawiki.api.js
@@ -3,13 +3,13 @@
44 ( function( $, mw, undefined ) {
55
66 /**
7 - * @var defaultsOptions {Object}
 7+ * @var defaultOptions {Object}
88 * We allow people to omit these default parameters from API requests
99 * there is very customizable error handling here, on a per-call basis
1010 * wondering, would it be simpler to make it easy to clone the api object,
1111 * change error handling, and use that instead?
1212 */
13 - var defaultsOptions = {
 13+ var defaultOptions = {
1414
1515 // Query parameters for API requests
1616 parameters: {
@@ -64,8 +64,8 @@
6565 options.ajax.url = String( options.ajax.url );
6666 }
6767
68 - options.parameters = $.extend( {}, defaultsOptions.parameters, options.parameters );
69 - options.ajax = $.extend( {}, defaultsOptions.ajax, options.ajax );
 68+ options.parameters = $.extend( {}, defaultOptions.parameters, options.parameters );
 69+ options.ajax = $.extend( {}, defaultOptions.ajax, options.ajax );
7070
7171 this.defaults = options;
7272 };

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r107011[mediawiki.api] clean up...krinkle23:52, 21 December 2011

Status & tagging log