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

Commit

Permalink
List autodividers: use trim() to avoid issues with newlines and space…
Browse files Browse the repository at this point in the history
…s in markup. Fixes #5197. Thanks @demonslord !
  • Loading branch information
jaspermdegroot committed Oct 25, 2012
1 parent e2f3ff9 commit 1b18d13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/widgets/listview.autodividers.js
Expand Up @@ -9,7 +9,7 @@ define( [ "jquery", "./listview" ], function( $ ) {
$.mobile.listview.prototype.options.autodividers = false;
$.mobile.listview.prototype.options.autodividersSelector = function( elt ) {
// look for the text in the given element
var text = elt.text() || null;
var text = $.trim( elt.text() ) || null;

if ( !text ) {
return null;
Expand Down

0 comments on commit 1b18d13

Please sign in to comment.