Skip to content
This repository
Browse code

fix for links/buttons inside list-divider

  • Loading branch information...
commit 63822fe9e4b172d00b733f3e85383a48a8bd923f 1 parent 44fbdd3
Jasper de Groot authored May 11, 2012 johnbender committed May 15, 2012

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

  1. 6  js/jquery.mobile.listview.js
6  js/jquery.mobile.listview.js
@@ -184,9 +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
+				var isDivider = ( item.jqmData( "role" ) === "list-divider" );
188 188
 
189  
-				if ( a.length && !divider ) {
  189
+				if ( a.length && !isDivider ) {
190 190
 					icon = item.jqmData("icon");
191 191
 
192 192
 					item.buttonMarkup({
@@ -234,7 +234,7 @@ $.widget( "mobile.listview", $.mobile.widget, {
234 234
 									})
235 235
 								);
236 236
 					}
237  
-				} else if ( divider ) {
  237
+				} else if ( isDivider ) {
238 238
 
239 239
 					itemClass += " ui-li-divider ui-bar-" + dividertheme;
240 240
 					item.attr( "role", "heading" );

0 notes on commit 63822fe

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