Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update js/jquery.mobile.listview.js

  • Loading branch information...
commit 44fbdd38f27d98350300d24962a1023763d006b7 1 parent a2486d6
@jaspermdegroot jaspermdegroot authored johnbender committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 js/jquery.mobile.listview.js
View
5 js/jquery.mobile.listview.js
@@ -184,8 +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;
- if ( a.length ) {
+ if ( a.length && !divider ) {
icon = item.jqmData("icon");
item.buttonMarkup({
@@ -233,7 +234,7 @@ $.widget( "mobile.listview", $.mobile.widget, {
})
);
}
- } else if ( item.jqmData( "role" ) === "list-divider" ) {
+ } else if ( divider ) {
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.