Index: trunk/phase3/resources/mediawiki/mediawiki.api.parse.js |
— | — | @@ -10,10 +10,10 @@ |
11 | 11 | * |
12 | 12 | * @param wikiText {String} |
13 | 13 | * @param success {Function} callback to which to pass success HTML |
14 | | - * @param error {Function} callback if error (optional) |
| 14 | + * @param err {Function} callback if error (optional) |
15 | 15 | * @return {jqXHR} |
16 | 16 | */ |
17 | | - parse: function( wikiText, success, error ) { |
| 17 | + parse: function( wikiText, success, err ) { |
18 | 18 | var params = { |
19 | 19 | text: wikiText, |
20 | 20 | action: 'parse' |
— | — | @@ -23,7 +23,7 @@ |
24 | 24 | success( data.parse.text['*'] ); |
25 | 25 | } |
26 | 26 | }; |
27 | | - return this.get( params, ok, error ); |
| 27 | + return this.get( params, { ok: ok, err: err } ); |
28 | 28 | } |
29 | 29 | |
30 | 30 | } ); |
Index: trunk/phase3/resources/mediawiki/mediawiki.api.titleblacklist.js |
— | — | @@ -44,7 +44,7 @@ |
45 | 45 | } |
46 | 46 | }; |
47 | 47 | |
48 | | - return this.get( params, ok, err ); |
| 48 | + return this.get( params, { ok: ok, err: err } ); |
49 | 49 | } |
50 | 50 | |
51 | 51 | } ); |
Index: trunk/phase3/resources/mediawiki/mediawiki.api.edit.js |
— | — | @@ -42,7 +42,7 @@ |
43 | 43 | err( code, result ); |
44 | 44 | } |
45 | 45 | }; |
46 | | - return api.post( params, { 'ok' : ok, 'err' : getTokenIfBad }); |
| 46 | + return api.post( params, { ok : ok, err : getTokenIfBad }); |
47 | 47 | } |
48 | 48 | }, |
49 | 49 | |