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.
currently, returns undefined. I propose that it should return true or false, depending on whether the page was indeed changed, or no change was made due to the requested page being the active page.
This would be convenient triggering events to reinitialize the page in cases where it is already displayed.
The text was updated successfully, but these errors were encountered:
Calling changePage() can result in an asynchronous request to load an external page, in which case we can't give the caller a definitive answer. We currently fire off pagebeforechange and pagechange events which you can read about here:
I remember thinking we should return a deferred promise object, but there was a complicating factor that isn't coming to mind at this second. In either case the changePage() might be asynchronous.
Hmm. If you do remember the complications, I'd love to learn more about the issue. I wouldn't mind attempting to write a patch that would return either false/undefined or a deferred object, as a way to get to learn the source a little better.
Just to give an idea of the code I'd wish to simplify, here's the snippet:
if $.mobile.activePage.attr('id') == 'edit_upload_page'
window.pageshow['edit_upload']()
else
$.mobile.changePage upload_path
Note that I've circumvented the normal event path-- both because I don't have an event object to send as an argument, and because I'm experimenting with enforcing simpler ways of handling voluminous page events.
example:
currently, returns undefined. I propose that it should return true or false, depending on whether the page was indeed changed, or no change was made due to the requested page being the active page.
This would be convenient triggering events to reinitialize the page in cases where it is already displayed.
The text was updated successfully, but these errors were encountered: