Index: trunk/phase3/resources/mediawiki.util/mediawiki.util.js |
— | — | @@ -3,7 +3,7 @@ |
4 | 4 | */ |
5 | 5 | ( function( $, mw ) { |
6 | 6 | |
7 | | - mw.util = $.extend( mw.util || {}, { |
| 7 | + mw.util = { |
8 | 8 | |
9 | 9 | /* Initialisation */ |
10 | 10 | /** |
— | — | @@ -586,7 +586,7 @@ |
587 | 587 | && address.search( /::/ ) != -1 && address.search( /::.*::/ ) == -1; |
588 | 588 | } |
589 | 589 | |
590 | | - } ); |
| 590 | + }; |
591 | 591 | |
592 | 592 | mw.util.init(); |
593 | 593 | |
Index: trunk/phase3/resources/Resources.php |
— | — | @@ -456,8 +456,8 @@ |
457 | 457 | 'jquery.placeholder', |
458 | 458 | ), |
459 | 459 | ), |
460 | | - 'mediawiki.util.jpegmeta' => array( |
461 | | - 'scripts' => 'resources/mediawiki.util/mediawiki.util.jpegmeta.js', |
| 460 | + 'mediawiki.libs.jpegmeta' => array( |
| 461 | + 'scripts' => 'resources/mediawiki.libs/mediawiki.libs.jpegmeta.js', |
462 | 462 | ), |
463 | 463 | 'mediawiki.action.history' => array( |
464 | 464 | 'scripts' => 'resources/mediawiki.action/mediawiki.action.history.js', |
— | — | @@ -529,7 +529,7 @@ |
530 | 530 | 'size-gigabytes', |
531 | 531 | 'largefileserver', |
532 | 532 | ), |
533 | | - 'dependencies' => array( 'mediawiki.util.jpegmeta' ), |
| 533 | + 'dependencies' => array( 'mediawiki.libs.jpegmeta' ), |
534 | 534 | ), |
535 | 535 | |
536 | 536 | 'mediawiki.language' => array( |
Index: trunk/phase3/resources/mediawiki.special/mediawiki.special.upload.js |
— | — | @@ -131,7 +131,7 @@ |
132 | 132 | img.src = dataURL; |
133 | 133 | }, mw.config.get( 'wgFileCanRotate' ) ? function ( data ) { |
134 | 134 | try { |
135 | | - meta = mw.util.jpegmeta( data, file.fileName ); |
| 135 | + meta = mw.libs.jpegmeta( data, file.fileName ); |
136 | 136 | meta._binary_data = null; |
137 | 137 | } catch ( e ) { |
138 | 138 | meta = null; |
Index: trunk/phase3/resources/mediawiki/mediawiki.js |
— | — | @@ -214,12 +214,12 @@ |
215 | 215 | */ |
216 | 216 | this.log = function() { }; |
217 | 217 | |
218 | | - /* |
219 | | - * Make the Map-class publicly available |
| 218 | + /** |
| 219 | + * @var constructor Make the Map-class publicly available. |
220 | 220 | */ |
221 | 221 | this.Map = Map; |
222 | 222 | |
223 | | - /* |
| 223 | + /** |
224 | 224 | * List of configuration values |
225 | 225 | * |
226 | 226 | * Dummy placeholder. Initiated in startUp module as a new instance of mw.Map(). |
— | — | @@ -228,6 +228,13 @@ |
229 | 229 | */ |
230 | 230 | this.config = null; |
231 | 231 | |
| 232 | + /** |
| 233 | + * @var object |
| 234 | + * |
| 235 | + * Empty object that plugins can be installed in. |
| 236 | + */ |
| 237 | + this.libs = {}; |
| 238 | + |
232 | 239 | /* |
233 | 240 | * Localization system |
234 | 241 | */ |