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

Commit 88e45be

Browse files
Listview: changed variables to please the linter.
1 parent 0e31744 commit 88e45be

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

js/jquery.mobile.listview.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ $.widget( "mobile.listview", $.mobile.widget, {
173173
// Check if a start attribute has been set and take a value of 0 into account
174174
if ( typeof start !== "undefined" && start !== false ) {
175175
if ( !jsCount ) {
176-
var startAt = parseFloat( start ) - 1;
177-
$list.css( "counter-reset", "listnumbering " + startAt );
176+
var startCount = parseFloat( start ) - 1;
177+
$list.css( "counter-reset", "listnumbering " + startCount );
178178
} else {
179179
counter = parseFloat( start );
180180
}
@@ -254,8 +254,8 @@ $.widget( "mobile.listview", $.mobile.widget, {
254254
//reset counter when a divider heading is encountered
255255
if ( typeof start !== "undefined" && start !== false ) {
256256
if ( !jsCount ) {
257-
var startAt = parseFloat( start ) - 1;
258-
item.css( "counter-reset", "listnumbering " + startAt );
257+
var newStartCount = parseFloat( start ) - 1;
258+
item.css( "counter-reset", "listnumbering " + newStartCount );
259259
} else {
260260
counter = parseFloat( start );
261261
}

0 commit comments

Comments
 (0)