Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

List autodividers: use trim() to avoid issues with newlines and space…

…s in markup. Fixes #5197. Thanks @demonslord !
  • Loading branch information...
commit 1b18d1374df583b6c22167fba06325999f043a66 1 parent e2f3ff9
@jaspermdegroot jaspermdegroot authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  js/widgets/listview.autodividers.js
View
2  js/widgets/listview.autodividers.js
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.