Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #4781 from MauriceG/patch-2

Listview autodividers: Fix for text links in list items
  • Loading branch information...
commit 76fa164e581d4804fb5a4175841959cb5d120f1d 2 parents 8610bad + 4e8e615
@jaspermdegroot jaspermdegroot authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/widgets/listview.autodividers.js
View
4 js/widgets/listview.autodividers.js
@@ -7,8 +7,8 @@ define( [ "jquery", "./listview" ], function( $ ) {
$.mobile.listview.prototype.options.autodividers = false;
$.mobile.listview.prototype.options.autodividersSelector = function( elt ) {
- // look for the first anchor in the item
- var text = elt.find( 'a' ).text() || elt.text() || null;
+ // look for the text in the given element
+ var text = elt.text() || null;
if ( !text ) {
return null;
Please sign in to comment.
Something went wrong with that request. Please try again.