mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
updated to use new data method
This commit is contained in:
parent
b950f1c319
commit
0ebab16a9a
1 changed files with 2 additions and 2 deletions
|
|
@ -30,7 +30,7 @@ $(":jqmData(role='page')").live("pageshow", function(event) {
|
|||
$this.scrolllistview();
|
||||
else
|
||||
{
|
||||
var st = $this.data("scroll") + "";
|
||||
var st = $this.jqmData("scroll") + "";
|
||||
var paging = st && st.search(/^[xy]p$/) != -1;
|
||||
var dir = st && st.search(/^[xy]/) != -1 ? st.charAt(0) : null;
|
||||
|
||||
|
|
@ -40,7 +40,7 @@ $(":jqmData(role='page')").live("pageshow", function(event) {
|
|||
if (paging)
|
||||
opts.pagingEnabled = true;
|
||||
|
||||
var method = $this.data("scroll-method");
|
||||
var method = $this.jqmData("scroll-method");
|
||||
if (method)
|
||||
opts.scrollMethod = method;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue