Index: trunk/phase3/js2/js2stopgap.js |
— | — | @@ -9467,7 +9467,7 @@ |
9468 | 9468 | /** |
9469 | 9469 | * Provides js2 compatible mw functions |
9470 | 9470 | */ |
9471 | | -if( !mw ){ |
| 9471 | +if( typeof mw == 'undefined' || !mw ){ |
9472 | 9472 | mw = { }; |
9473 | 9473 | /** |
9474 | 9474 | * Provides js2 compatible onload hook |
— | — | @@ -9477,7 +9477,7 @@ |
9478 | 9478 | $j(document).ready( func ); |
9479 | 9479 | } |
9480 | 9480 | // Define a dummy mw.load function: |
9481 | | - mw.load = function( callback) { callbcak() }; |
| 9481 | + mw.load = function( deps, callback ) { callback(); }; |
9482 | 9482 | |
9483 | 9483 | // Creates global message object if not already in existence |
9484 | 9484 | if ( !gMsg ) var gMsg = {}; |
— | — | @@ -9515,4 +9515,4 @@ |
9516 | 9516 | } |
9517 | 9517 | } |
9518 | 9518 | |
9519 | | -} |
\ No newline at end of file |
| 9519 | +} |
Index: trunk/phase3/js2/js2stopgap.min.js |
— | — | @@ -775,8 +775,7 @@ |
776 | 776 | target[name]=props[name];return target;};function isArray(a){return(a&&(($.browser.safari&&typeof a=='object'&&a.length)||(a.constructor&&a.constructor.toString().match(/\Array\(\)/))));};$.fn.datepicker=function(options){if(!$.datepicker.initialized){$(document).mousedown($.datepicker._checkExternalClick).find('body').append($.datepicker.dpDiv);$.datepicker.initialized=true;} |
777 | 777 | var otherArgs=Array.prototype.slice.call(arguments,1);if(typeof options=='string'&&(options=='isDisabled'||options=='getDate')) |
778 | 778 | return $.datepicker['_'+options+'Datepicker'].apply($.datepicker,[this[0]].concat(otherArgs));if(options=='option'&&arguments.length==2&&typeof arguments[1]=='string') |
779 | | -return $.datepicker['_'+options+'Datepicker'].apply($.datepicker,[this[0]].concat(otherArgs));return this.each(function(){typeof options=='string'?$.datepicker['_'+options+'Datepicker'].apply($.datepicker,[this].concat(otherArgs)):$.datepicker._attachDatepicker(this,options);});};$.datepicker=new Datepicker();$.datepicker.initialized=false;$.datepicker.uuid=new Date().getTime();$.datepicker.version="1.7.2";window.DP_jQuery=$;})(jQuery);if(!gMsg)var gMsg={};function loadGM(msgSet){for(var i in msgSet){gMsg[i]=msgSet[i];}} |
| 779 | +return $.datepicker['_'+options+'Datepicker'].apply($.datepicker,[this[0]].concat(otherArgs));return this.each(function(){typeof options=='string'?$.datepicker['_'+options+'Datepicker'].apply($.datepicker,[this].concat(otherArgs)):$.datepicker._attachDatepicker(this,options);});};$.datepicker=new Datepicker();$.datepicker.initialized=false;$.datepicker.uuid=new Date().getTime();$.datepicker.version="1.7.2";window.DP_jQuery=$;})(jQuery);$j=jQuery.noConflict();if(typeof mw=='undefined'||!mw){mw={};mw.addOnloadHook=function(func){$j(document).ready(func);} |
| 780 | +mw.load=function(deps,callback){callback();};if(!gMsg)var gMsg={};mw.addMessages=function(msgSet){for(var i in msgSet){gMsg[i]=msgSet[i];}} |
780 | 781 | function gM(key,args){var ms='';if(key in gMsg){ms=gMsg[key];if(typeof args=='object'||typeof args=='array'){for(var v in args){var rep='\$'+(parseInt(v)+1);ms=ms.replace(rep,args[v]);}}else if(typeof args=='string'||typeof args=='number'){ms=ms.replace(/\$1/,args);} |
781 | | -return ms;}else{return'['+key+']';}} |
782 | | -$j=jQuery.noConflict();function js2AddOnloadHook(func){$j(document).ready(func);} |
783 | | -mvJsLoader={doLoad:function(deps,callback){callback();}}; |
\ No newline at end of file |
| 782 | +return ms;}else{return'['+key+']';}}} |
\ No newline at end of file |