Index: trunk/phase3/includes/resourceloader/ResourceLoader.php |
— | — | @@ -533,7 +533,7 @@ |
534 | 534 | 'mediaWiki.loader.implement', |
535 | 535 | array( |
536 | 536 | $name, |
537 | | - new XmlJsCode( "function() {{$scripts}}" ), |
| 537 | + new XmlJsCode( "function( $, mw ) {{$scripts}}" ), |
538 | 538 | (object)$styles, |
539 | 539 | (object)$messages |
540 | 540 | ) ); |
Index: trunk/phase3/resources/mediawiki/mediawiki.js |
— | — | @@ -661,7 +661,7 @@ |
662 | 662 | } |
663 | 663 | // Execute script |
664 | 664 | try { |
665 | | - registry[module].script(); |
| 665 | + registry[module].script( jQuery, mediaWiki ); |
666 | 666 | registry[module].state = 'ready'; |
667 | 667 | // Run jobs who's dependencies have just been met |
668 | 668 | for ( var j = 0; j < jobs.length; j++ ) { |