fix test errors relying on require after switching back to synchronous load

This commit is contained in:
John Bender 2012-01-17 15:07:55 -08:00
parent 90b0f9ace3
commit ca0c1a9c61
2 changed files with 9 additions and 1 deletions

View file

@ -54,6 +54,14 @@
reloadModule: function(libName){
var deferred = $.Deferred(),
context;
// where a module loader isn't defined use the old way
if( !window.require ) {
this.reloadLib( libName );
deferred.resolve();
return deferred;
}
if(this.reloads[libName] === undefined) {
this.reloads[libName] = {
count: 0

View file

@ -4,7 +4,7 @@
$.testHelper.excludeFileProtocol(function(){
var prependToFn = $.fn.prependTo,
libName = "jquery.mobile.support";
libName = "jquery.mobile.support.js";
module(libName, {
teardown: function(){