Skip to content

Commit 2add396

Browse files
author
scottjehl
committed
moved some selectors over to :jqmData()
1 parent f78e7b0 commit 2add396

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

experiments/scrollview/scrollview.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function ResizePageContentHeight(page)
1010
$content.height(wh - (hh + fh) - (pt + pb));
1111
}
1212

13-
$("[data-"+ $.mobile.ns +"role=page]").live("pageshow", function(event) {
13+
$(":jqmData(role='page')").live("pageshow", function(event) {
1414
var $page = $(this);
1515

1616
// For the demos that use this script, we want the content area of each
@@ -22,7 +22,7 @@ $("[data-"+ $.mobile.ns +"role=page]").live("pageshow", function(event) {
2222
// into the jqm page processing code when scrollview support is "official"
2323
// instead of "experimental".
2424

25-
$page.find("[data-"+ $.mobile.ns +"scroll]:not(.ui-scrollview-clip)").each(function(){
25+
$page.find(":jqmData(scroll):not(.ui-scrollview-clip)").each(function(){
2626
var $this = $(this);
2727
// XXX: Remove this check for ui-scrolllistview once we've
2828
// integrated list divider support into the main scrollview class.

0 commit comments

Comments
 (0)