Skip to content
This repository
Browse code

Update js/jquery.mobile.listview.js

  • Loading branch information...
commit 44fbdd38f27d98350300d24962a1023763d006b7 1 parent a2486d6
Jasper de Groot authored April 11, 2012 johnbender committed May 15, 2012

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. 5  js/jquery.mobile.listview.js
5  js/jquery.mobile.listview.js
@@ -184,8 +184,9 @@ $.widget( "mobile.listview", $.mobile.widget, {
184 184
 			if ( create || !item.hasClass( "ui-li" ) ) {
185 185
 				itemTheme = item.jqmData("theme") || o.theme;
186 186
 				a = this._getChildrenByTagName( item[ 0 ], "a", "A" );
  187
+				divider = ( item.jqmData( "role" ) === "list-divider" ) ? true : false;
187 188
 
188  
-				if ( a.length ) {
  189
+				if ( a.length && !divider ) {
189 190
 					icon = item.jqmData("icon");
190 191
 
191 192
 					item.buttonMarkup({
@@ -233,7 +234,7 @@ $.widget( "mobile.listview", $.mobile.widget, {
233 234
 									})
234 235
 								);
235 236
 					}
236  
-				} else if ( item.jqmData( "role" ) === "list-divider" ) {
  237
+				} else if ( divider ) {
237 238
 
238 239
 					itemClass += " ui-li-divider ui-bar-" + dividertheme;
239 240
 					item.attr( "role", "heading" );

0 notes on commit 44fbdd3

Please sign in to comment.
Something went wrong with that request. Please try again.