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

Commit

Permalink
Listview: Correction in the code that sets the counter when there is …
Browse files Browse the repository at this point in the history
…a value attribute.
  • Loading branch information
jaspermdegroot committed May 23, 2013
1 parent ed67438 commit be2c475
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions js/widgets/listview.js
Expand Up @@ -154,11 +154,9 @@ $.widget( "mobile.listview", $.mobile.widget, $.extend( {
itemClass = "ui-li-static ui-body-" + ( itemTheme ? itemTheme : "inherit" );
}
if ( ol && value ) {
var elem = ( a.length && !isDivider ) ? a : item;

newStartCount = parseInt( value , 10 ) - 1;

elem.css( "counter-reset", "listnumbering " + newStartCount );
item.css( "counter-reset", "listnumbering " + newStartCount );
}
}

Expand Down

0 comments on commit be2c475

Please sign in to comment.