Index: trunk/phase3/resources/mediawiki/mediawiki.api.js |
— | — | @@ -3,13 +3,13 @@ |
4 | 4 | ( function( $, mw, undefined ) { |
5 | 5 | |
6 | 6 | /** |
7 | | - * @var defaultsOptions {Object} |
| 7 | + * @var defaultOptions {Object} |
8 | 8 | * We allow people to omit these default parameters from API requests |
9 | 9 | * there is very customizable error handling here, on a per-call basis |
10 | 10 | * wondering, would it be simpler to make it easy to clone the api object, |
11 | 11 | * change error handling, and use that instead? |
12 | 12 | */ |
13 | | - var defaultsOptions = { |
| 13 | + var defaultOptions = { |
14 | 14 | |
15 | 15 | // Query parameters for API requests |
16 | 16 | parameters: { |
— | — | @@ -64,8 +64,8 @@ |
65 | 65 | options.ajax.url = String( options.ajax.url ); |
66 | 66 | } |
67 | 67 | |
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 ); |
70 | 70 | |
71 | 71 | this.defaults = options; |
72 | 72 | }; |