mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-13 00:53:10 +00:00
moved a couple of concats over to :jqmData() selector
This commit is contained in:
parent
8a3b846e95
commit
d59ba5a31a
1 changed files with 2 additions and 2 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue