You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.
The now deprecated $.mobile.loadPage method also returns a promise so this seems to be the desired behaviour.
As of now, the pagecontainer("load") method creates a deferred, but does not return it as a promise.
…y-archive#6901
The API docs for version 1.4.0 state that the load method of the pagecontainer widget returns a promise. This commit adds this behaviour to the widget to comply with the docs
Fixesjquery-archive#6900
The API docs for version 1.4.0 state that the load method of the pagecontainer
widget returns a promise. This commit adds this behaviour to the widget to
comply with the docs.
Closesgh-6901Fixesgh-6900
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The current API docs for version 1.4.0 state that the method load of pagecontainer returns a promise to keep track of the load operation:
http://api.jquerymobile.com/pagecontainer/#method-load
The now deprecated $.mobile.loadPage method also returns a promise so this seems to be the desired behaviour.
As of now, the pagecontainer("load") method creates a deferred, but does not return it as a promise.
This behaviour is reproducable in the following test page:
http://jsbin.com/IFolanOW/72
The text was updated successfully, but these errors were encountered: