jquery/jquery-mobile — Issue #2996: pagebeforechange event triggered twice (Multi-page)
Author: madaz
Created: 2011-11-09 00:15:17+00:00
State: open

The following scenario triggers the event pagebeforechange twice. First time data.toPage is a string and the next event the data.toPage is the jQuery Object for the page.

I want to update html on the page getting transitioned too before it is shown, but don't want the code to run twice. Is this a bug or am I doing in the wrong event?

Same scenario also if i use $(document).bind('pagebeforechange')

Test Page

Menu

Item 1

Item 2

Footer

Item 1

Footer

Item 2

Footer