From d59ba5a31ad334410d5dc93880beded30c27f172 Mon Sep 17 00:00:00 2001 From: scottjehl Date: Sat, 26 Mar 2011 10:09:52 -0400 Subject: [PATCH] moved a couple of concats over to :jqmData() selector --- js/jquery.mobile.page.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/jquery.mobile.page.js b/js/jquery.mobile.page.js index 40500030..75879195 100644 --- a/js/jquery.mobile.page.js +++ b/js/jquery.mobile.page.js @@ -42,10 +42,10 @@ $.widget( "mobile.page", $.mobile.widget, { // classes so we'll handle page and content roles outside of the main role processing // loop below. $elem.find( ":jqmData(role='page'), :jqmData(role='content')" ).andSelf().each(function() { - $(this).addClass( "ui-" + $(this).jqmData( $.mobile.ns + "role" ) ); + $(this).addClass( "ui-" + $(this).jqmData( "role" ) ); }); - $elem.find( "[data-" + $.mobile.ns + "role='nojs']" ).addClass( "ui-nojs" ); + $elem.find( ":jqmData(role='nojs')" ).addClass( "ui-nojs" ); // pre-find data els var $dataEls = $elem.find( ":jqmData(role)" ).andSelf().each(function() {