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

Commit 32fbfcb

Browse files
committed
use trigger with deprecated to include content* events
1 parent 9378a97 commit 32fbfcb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

js/jquery.mobile.navigation.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -696,12 +696,10 @@ define( [
696696

697697
if ( fromPage ) {
698698
//trigger before show/hide events
699-
fromPage.data( "mobile-page" )
700-
._trigger( "beforehide", null, { nextPage: toPage } );
699+
this._triggerWithDeprecated( "beforehide", {nextPage: toPage}, fromPage );
701700
}
702701

703-
toPage.data( "mobile-page" )
704-
._trigger( "beforeshow", null, { prevPage: fromPage || $( "" ) } );
702+
this._triggerWithDeprecated( "beforeshow", {prevPage: fromPage || $( "" )}, toPage );
705703

706704
//clear page loader
707705
// TODO use conent loader ref

0 commit comments

Comments
 (0)