Index: trunk/extensions/UploadWizard/resources/mw.Api.category.js |
— | — | @@ -9,7 +9,7 @@ |
10 | 10 | * @param {Function} optional callback to run if api error |
11 | 11 | * @return ajax call object |
12 | 12 | */ |
13 | | - isCategory: function( title, callback, error ) { |
| 13 | + isCategory: function( title, callback, err ) { |
14 | 14 | var params = { |
15 | 15 | 'prop': 'categoryinfo', |
16 | 16 | 'titles': title.toString() |
— | — | @@ -37,7 +37,7 @@ |
38 | 38 | * @param {Function} optional callback to run if api error |
39 | 39 | * @return ajax call object |
40 | 40 | */ |
41 | | - getCategoriesByPrefix: function( prefix, callback, error ) { |
| 41 | + getCategoriesByPrefix: function( prefix, callback, err ) { |
42 | 42 | |
43 | 43 | var params = { |
44 | 44 | 'list': 'allcategories', |
— | — | @@ -65,9 +65,10 @@ |
66 | 66 | * @param {mw.Title} |
67 | 67 | * @param {Function} callback to pass categories to (or false, if title not found) |
68 | 68 | * @param {Function} optional callback to run if api error |
| 69 | + * @param {Boolean} optional asynchronousness (default = true = async) |
69 | 70 | * @return ajax call object |
70 | 71 | */ |
71 | | - getCategories: function( title, callback, error, async ) { |
| 72 | + getCategories: function( title, callback, err, async ) { |
72 | 73 | var params = { |
73 | 74 | prop: 'categories', |
74 | 75 | titles: title.toString() |