mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
fix test errors relying on require after switching back to synchronous load
This commit is contained in:
parent
90b0f9ace3
commit
ca0c1a9c61
2 changed files with 9 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
$.testHelper.excludeFileProtocol(function(){
|
||||
var prependToFn = $.fn.prependTo,
|
||||
libName = "jquery.mobile.support";
|
||||
libName = "jquery.mobile.support.js";
|
||||
|
||||
module(libName, {
|
||||
teardown: function(){
|
||||
|
|
|
|||
Loading…
Reference in a new issue