mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-02 03:44:43 +00:00
minor refactor and check for defined attr
This commit is contained in:
parent
6b010492b2
commit
76d5c49b78
1 changed files with 4 additions and 2 deletions
|
|
@ -35,11 +35,13 @@
|
|||
},
|
||||
|
||||
isSubHashPage: function( page ) {
|
||||
var pageUrl = page.jqmData("url") || "";
|
||||
|
||||
// if the page is a dialog, a subpage, or an embedded page
|
||||
// then the hash will have been maintained
|
||||
return page.is( "[role='dialog']" ) ||
|
||||
page.jqmData("url").indexOf( $.mobile.subPageUrlKey ) >= 0 ||
|
||||
page.jqmData("url") == page.attr( "id" );
|
||||
pageUrl.indexOf( $.mobile.subPageUrlKey ) >= 0 ||
|
||||
pageUrl === page.attr( "id" );
|
||||
},
|
||||
|
||||
resetUIKeys: function( url ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue