diff --git a/experiments/scrollview/scrollview.js b/experiments/scrollview/scrollview.js index 013dd56c..356f55e8 100644 --- a/experiments/scrollview/scrollview.js +++ b/experiments/scrollview/scrollview.js @@ -10,7 +10,7 @@ function ResizePageContentHeight(page) $content.height(wh - (hh + fh) - (pt + pb)); } -$("[data-"+ $.mobile.ns +"role=page]").live("pageshow", function(event) { +$(":jqmData(role='page')").live("pageshow", function(event) { var $page = $(this); // 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) { // into the jqm page processing code when scrollview support is "official" // instead of "experimental". - $page.find("[data-"+ $.mobile.ns +"scroll]:not(.ui-scrollview-clip)").each(function(){ + $page.find(":jqmData(scroll):not(.ui-scrollview-clip)").each(function(){ var $this = $(this); // XXX: Remove this check for ui-scrolllistview once we've // integrated list divider support into the main scrollview class.