mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
Some "page" data calls were accidentally switched to jqmData(). The widget code actually uses data() so we need to make sure we match.
A couple of data() to jqmData() changes were missed.
This commit is contained in:
parent
bb721aa48c
commit
90e167a4f6
1 changed files with 4 additions and 4 deletions
|
|
@ -413,10 +413,10 @@
|
|||
|
||||
//trigger show/hide events
|
||||
if( from ){
|
||||
from.jqmData( "page" )._trigger( "hide", null, { nextPage: to } );
|
||||
from.data( "page" )._trigger( "hide", null, { nextPage: to } );
|
||||
}
|
||||
//trigger pageshow, define prevPage as either from or empty jQuery obj
|
||||
to.jqmData( "page" )._trigger( "show", null, { prevPage: from || $("") } );
|
||||
to.data( "page" )._trigger( "show", null, { prevPage: from || $("") } );
|
||||
|
||||
//set "to" as activePage
|
||||
$.mobile.activePage = to;
|
||||
|
|
@ -638,8 +638,8 @@
|
|||
type: type.length && type.toLowerCase() || "get",
|
||||
data: $(this).serialize()
|
||||
},
|
||||
$(this).data("transition"),
|
||||
$(this).data("direction"),
|
||||
$(this).jqmData("transition"),
|
||||
$(this).jqmData("direction"),
|
||||
true
|
||||
);
|
||||
event.preventDefault();
|
||||
|
|
|
|||
Loading…
Reference in a new issue