r98780 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98779‎ | r98780 | r98781 >
Date:17:31, 3 October 2011
Author:krinkle
Status:ok
Tags:
Comment:
[RL2] Break long lines
Modified paths:
  • /branches/RL2/extensions/Gadgets/modules/ext.gadgets.api.js (modified) (history)

Diff [purge]

Index: branches/RL2/extensions/Gadgets/modules/ext.gadgets.api.js
@@ -127,7 +127,8 @@
128128 /**
129129 * Get the gadget blobs for all gadgets from all repositories.
130130 *
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.
132133 * @param error {Function} To be called with a string (error code) as first argument.
133134 */
134135 getForeignGadgetsData: function( success, error ) {
@@ -141,7 +142,8 @@
142143 * Get the gadget categories from all repositories.
143144 *
144145 * @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.
146148 * @param error {Function} To be called with a string (error code) as the first argument.
147149 */
148150 getForeignGadgetCategories: function( success, error ) {
@@ -152,10 +154,12 @@
153155 * Get gadget blob from the API (or from cache if available).
154156 *
155157 * @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.
157160 * @param error {Function} If something went wrong (inexistent gadget, api
158161 * 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'
160164 */
161165 getGadgetData: function( id, success, error, repoName ) {
162166 repoName = repoName || 'local';
@@ -219,7 +223,8 @@
220224 *
221225 * @param success {Function} To be called with an array as first argument.
222226 * @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'
224229 * @return {jqXHR|Null}: Null if served from cache, otherwise the jqXHR.
225230 */
226231 getGadgetCategories: function( success, error, repoName ) {

Status & tagging log