I'm often having errors in Jquery Mobile on transitions telling me that
- fromPage.data("page") is undefined
I know this happens because of plugin I'm writing and that I somewhere need to re-declare fromPage for (hopefully) making it work.
Right now, I'm looking for a way to monitor
fromPage.data("page")I have tried to setup listeners on pagebeforechange like so:
$(document).on( "pagebeforechange", "div:jqmData(role='page')", function( e, data ) {
- console.log( data );
- console.log( data.fromPage );
- console.log( data.fromPage("page") );
- });
But except for data, which really doesn't tell me a lot, since it contains a lot... I'm only consoling
undefinedsQuestion:How could I set up a listener to check what magical ingredient
fromPage.data("page") contains?
Thanks for help!