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

Commit

Permalink
Listview: Fixes inset lists with autodividers didn't get corner styling.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspermdegroot committed Jul 13, 2012
1 parent 22ef7fb commit afba16b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/widgets/listview.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ $.widget( "mobile.listview", $.mobile.widget, {
$bottomli;

$li = this.element.children( "li" );
// at create time the li are not visible yet so we need to rely on .ui-screen-hidden
$visibleli = create ? $li.not( ".ui-screen-hidden" ) : $li.filter( ":visible" );
// At create time and when autodividers calls refresh the li are not visible yet so we need to rely on .ui-screen-hidden
$visibleli = create || $li.filter( ":visible" ).length === 0 ? $li.not( ".ui-screen-hidden" ) : $li.filter( ":visible" );

// ui-li-last is used for setting border-bottom on the last li
$li.find( ".ui-li-last" ).removeClass( "ui-li-last" );
Expand Down

0 comments on commit afba16b

Please sign in to comment.