| Index: branches/RL2/extensions/Gadgets/modules/ext.gadgets.api.js |
| — | — | @@ -127,7 +127,8 @@ |
| 128 | 128 | /** |
| 129 | 129 | * Get the gadget blobs for all gadgets from all repositories. |
| 130 | 130 | * |
| 131 | | - * @param success {Function} To be called with an object of arrays of gadget objects, keyed by repository name, as first argument. |
| | 131 | + * @param success {Function} To be called with an object of arrays of gadget objects, |
| | 132 | + * keyed by repository name, as first argument. |
| 132 | 133 | * @param error {Function} To be called with a string (error code) as first argument. |
| 133 | 134 | */ |
| 134 | 135 | getForeignGadgetsData: function( success, error ) { |
| — | — | @@ -141,7 +142,8 @@ |
| 142 | 143 | * Get the gadget categories from all repositories. |
| 143 | 144 | * |
| 144 | 145 | * @param success {Function} To be called with an array |
| 145 | | - * @param success {Function} To be called with an object of arrays of category objects, keyed by repository name, as first argument. |
| | 146 | + * @param success {Function} To be called with an object of arrays of category objects, |
| | 147 | + * keyed by repository name, as first argument. |
| 146 | 148 | * @param error {Function} To be called with a string (error code) as the first argument. |
| 147 | 149 | */ |
| 148 | 150 | getForeignGadgetCategories: function( success, error ) { |
| — | — | @@ -152,10 +154,12 @@ |
| 153 | 155 | * Get gadget blob from the API (or from cache if available). |
| 154 | 156 | * |
| 155 | 157 | * @param id {String|null} Gadget id, or null to get all from the repo. |
| 156 | | - * @param success {Function} To be called with the gadget object or array of gadget objects as first argument. |
| | 158 | + * @param success {Function} To be called with the gadget object or array |
| | 159 | + * of gadget objects as first argument. |
| 157 | 160 | * @param error {Function} If something went wrong (inexistent gadget, api |
| 158 | 161 | * error, request error), this is called with error code as first argument. |
| 159 | | - * @param repoName {String} Name of the repository, key in mw.gadgets.conf.repos. Defaults to 'local' |
| | 162 | + * @param repoName {String} Name of the repository, key in mw.gadgets.conf.repos. |
| | 163 | + * Defaults to 'local' |
| 160 | 164 | */ |
| 161 | 165 | getGadgetData: function( id, success, error, repoName ) { |
| 162 | 166 | repoName = repoName || 'local'; |
| — | — | @@ -219,7 +223,8 @@ |
| 220 | 224 | * |
| 221 | 225 | * @param success {Function} To be called with an array as first argument. |
| 222 | 226 | * @param error {Function} To be called with a string (error code) as first argument. |
| 223 | | - * @param repoName {String} Name of the repository, key in mw.gadgets.conf.repos . Defaults to 'local' |
| | 227 | + * @param repoName {String} Name of the repository, key in mw.gadgets.conf.repos. |
| | 228 | + * Defaults to 'local' |
| 224 | 229 | * @return {jqXHR|Null}: Null if served from cache, otherwise the jqXHR. |
| 225 | 230 | */ |
| 226 | 231 | getGadgetCategories: function( success, error, repoName ) { |