Skip to content
This repository
Browse code

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
Jasper de Groot authored August 04, 2012

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

  1. 4  js/widgets/listview.autodividers.js
4  js/widgets/listview.autodividers.js
@@ -7,8 +7,8 @@ define( [ "jquery", "./listview" ], function( $ ) {
7 7
 
8 8
 $.mobile.listview.prototype.options.autodividers = false;
9 9
 $.mobile.listview.prototype.options.autodividersSelector = function( elt ) {
10  
-	// look for the first anchor in the item
11  
-	var text = elt.find( 'a' ).text() || elt.text() || null;
  10
+	// look for the text in the given element
  11
+	var text = elt.text() || null;
12 12
 
13 13
 	if ( !text ) {
14 14
 		return null;

0 notes on commit 76fa164

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