Skip to content

Commit f62c5c0

Browse files
committed
Fixes jquery-archive#3028 — Listviews themselves are now inheriting the theme set at the page level. Individual list items remain themeable.
1 parent b90eab4 commit f62c5c0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

js/jquery.mobile.listview.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var listCountPerPage = {};
1111

1212
$.widget( "mobile.listview", $.mobile.widget, {
1313
options: {
14-
theme: "c",
14+
theme: null,
1515
countTheme: "c",
1616
headerTheme: "b",
1717
dividerTheme: "b",
@@ -160,6 +160,10 @@ $.widget( "mobile.listview", $.mobile.widget, {
160160
if ( counter ) {
161161
$list.find( ".ui-li-dec" ).remove();
162162
}
163+
164+
if ( !o.theme ) {
165+
o.theme = $.mobile.getInheritedTheme( this.element, "c" );
166+
}
163167

164168
for ( var pos = 0, numli = li.length; pos < numli; pos++ ) {
165169
item = li.eq( pos );

0 commit comments

Comments
 (0)