mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
guarantee the page reset in the listview tests has completed before continuing
This commit is contained in:
parent
877599dd6c
commit
5c1fc9540b
1 changed files with 10 additions and 2 deletions
|
|
@ -4,13 +4,21 @@
|
|||
|
||||
// TODO split out into seperate test files
|
||||
(function($){
|
||||
var home = $.mobile.path.parseUrl( location.href ).pathname;
|
||||
var home = $.mobile.path.parseUrl( location.href ).pathname + location.search;
|
||||
|
||||
$.mobile.defaultTransition = "none";
|
||||
|
||||
module( "Basic Linked list", {
|
||||
setup: function(){
|
||||
$.mobile.changePage( "#basic-linked-test" );
|
||||
if( location.hash != "#basic-linked-test" ){
|
||||
stop();
|
||||
|
||||
$(document).one("pagechange", function() {
|
||||
start();
|
||||
});
|
||||
|
||||
$.mobile.changePage( home );
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue