Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix for links/buttons inside list-divider

  • Loading branch information...
commit 63822fe9e4b172d00b733f3e85383a48a8bd923f 1 parent 44fbdd3
Jasper de Groot jaspermdegroot authored johnbender committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 js/jquery.mobile.listview.js
6 js/jquery.mobile.listview.js
View
@@ -184,9 +184,9 @@ $.widget( "mobile.listview", $.mobile.widget, {
if ( create || !item.hasClass( "ui-li" ) ) {
itemTheme = item.jqmData("theme") || o.theme;
a = this._getChildrenByTagName( item[ 0 ], "a", "A" );
- divider = ( item.jqmData( "role" ) === "list-divider" ) ? true : false;
+ var isDivider = ( item.jqmData( "role" ) === "list-divider" );
- if ( a.length && !divider ) {
+ if ( a.length && !isDivider ) {
icon = item.jqmData("icon");
item.buttonMarkup({
@@ -234,7 +234,7 @@ $.widget( "mobile.listview", $.mobile.widget, {
})
);
}
- } else if ( divider ) {
+ } else if ( isDivider ) {
itemClass += " ui-li-divider ui-bar-" + dividertheme;
item.attr( "role", "heading" );
Please sign in to comment.
Something went wrong with that request. Please try again.