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

Commit

Permalink
Listview: changed variables to please the linter.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspermdegroot committed Jul 12, 2012
1 parent 0e31744 commit 88e45be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/jquery.mobile.listview.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ $.widget( "mobile.listview", $.mobile.widget, {
// Check if a start attribute has been set and take a value of 0 into account
if ( typeof start !== "undefined" && start !== false ) {
if ( !jsCount ) {
var startAt = parseFloat( start ) - 1;
$list.css( "counter-reset", "listnumbering " + startAt );
var startCount = parseFloat( start ) - 1;
$list.css( "counter-reset", "listnumbering " + startCount );
} else {
counter = parseFloat( start );
}
Expand Down Expand Up @@ -254,8 +254,8 @@ $.widget( "mobile.listview", $.mobile.widget, {
//reset counter when a divider heading is encountered
if ( typeof start !== "undefined" && start !== false ) {
if ( !jsCount ) {
var startAt = parseFloat( start ) - 1;
item.css( "counter-reset", "listnumbering " + startAt );
var newStartCount = parseFloat( start ) - 1;
item.css( "counter-reset", "listnumbering " + newStartCount );
} else {
counter = parseFloat( start );
}
Expand Down

0 comments on commit 88e45be

Please sign in to comment.