Index: trunk/phase3/resources/mediawiki/mediawiki.js |
— | — | @@ -659,7 +659,7 @@ |
660 | 660 | * @param module string module name to execute |
661 | 661 | */ |
662 | 662 | function execute( module ) { |
663 | | - var _method = 'mw.loader::execute'; |
| 663 | + var _fn = 'mw.loader::execute> '; |
664 | 664 | if ( typeof registry[module] === 'undefined' ) { |
665 | 665 | throw new Error( 'Module has not been registered yet: ' + module ); |
666 | 666 | } else if ( registry[module].state === 'registered' ) { |
— | — | @@ -692,7 +692,7 @@ |
693 | 693 | // Execute script |
694 | 694 | try { |
695 | 695 | registry[module].script( jQuery ); |
696 | | - mw.log( 'State ready: ' + module, _method ) |
| 696 | + mw.log( _fn + 'State ready: ' + module ) |
697 | 697 | registry[module].state = 'ready'; |
698 | 698 | // Run jobs who's dependencies have just been met |
699 | 699 | for ( var j = 0; j < jobs.length; j++ ) { |
— | — | @@ -719,8 +719,8 @@ |
720 | 720 | } |
721 | 721 | } |
722 | 722 | } catch ( e ) { |
723 | | - mediaWiki.log( 'Exception thrown by ' + module + ': ' + e.message, _method ); |
724 | | - mediaWiki.log( e ); |
| 723 | + mw.log( _fn + 'Exception thrown by ' + module + ': ' + e.message ); |
| 724 | + mw.log( e ); |
725 | 725 | registry[module].state = 'error'; |
726 | 726 | // Run error callbacks of jobs affected by this condition |
727 | 727 | for ( var j = 0; j < jobs.length; j++ ) { |