Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 4e8e615

Browse files
committed
Listview autodividers: Fix for text links in list items
1 parent 834716f commit 4e8e615

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/widgets/listview.autodividers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ define( [ "jquery", "./listview" ], function( $ ) {
77

88
$.mobile.listview.prototype.options.autodividers = false;
99
$.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;
1212

1313
if ( !text ) {
1414
return null;

0 commit comments

Comments
 (0)