Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Loader: Attach to body when no $.mobile.pageContainer found #7761

Closed
wants to merge 3 commits into from

Conversation

gabrielschulhof
Copy link

Fixes gh-7760

@@ -115,7 +119,9 @@ define( [ "jquery", "../core", "../widget" ], function( jQuery ) {
}

// attach the loader to the DOM
this.element.appendTo( $.mobile.pageContainer );
this.element.appendTo(
( $.mobile.pageContainer && $.mobile.pageContainer.length > 0 ) ?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$.mobile.pageContainer is deprecated in 1.4 this should be $( ":mobile-pagecontainer" ) because right now just like highlander "There can be only one"

@arschmitz
Copy link
Contributor

👍

@gabrielschulhof gabrielschulhof deleted the 7760-loader-running-individually branch October 24, 2014 21:11
gabrielschulhof pushed a commit that referenced this pull request Oct 24, 2014
agcolom pushed a commit to agcolom/jquery-mobile that referenced this pull request Nov 26, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Loader: Does not work on its own
3 participants