Index: trunk/extensions/VisualEditor/modules/es/es.js |
— | — | @@ -175,12 +175,13 @@ |
176 | 176 | * @static |
177 | 177 | * @method |
178 | 178 | * @param {Array} dst Array to splice insertion into. Will be modified |
179 | | - * @param {Number} offset Offset in arr to splice insertion in at. May be negative; see the 'index' parameter for Array.prototype.splice() |
| 179 | + * @param {Number} offset Offset in arr to splice insertion in at. May be negative; see the 'index' |
| 180 | + * parameter for Array.prototype.splice() |
180 | 181 | * @param {Array} src Array of items to insert |
181 | 182 | */ |
182 | 183 | es.insertIntoArray = function( dst, offset, src ) { |
183 | | - // We need to splice insertion in in batches, because of parameter list length limits which vary cross-browser. |
184 | | - // 1024 seems to be a safe batch size on all browsers. |
| 184 | + // We need to splice insertion in in batches, because of parameter list length limits which vary |
| 185 | + // cross-browser - 1024 seems to be a safe batch size on all browsers |
185 | 186 | var index = 0, batchSize = 1024; |
186 | 187 | while ( index < src.length ) { |
187 | 188 | // Call arr.splice( offset, 0, i0, i1, i2, ..., i1023 ); |