Skip to content

Commit e5988f5

Browse files
committed
Rename the second argument of each from count to value and move the backUpFromSmall call to the outer loop.
This should fix kni-labs#191
1 parent 71d5afb commit e5988f5

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

js/rrssb.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@
207207
var buttons = $('li', self);
208208

209209
// get buttons in reverse order and loop through each
210-
$(buttons.get().reverse()).each(function(index, count) {
210+
$(buttons.get().reverse()).each(function(index, value) {
211211

212212
var button = $(this);
213213

@@ -221,9 +221,8 @@
221221
sizeSmallBtns();
222222
}
223223
}
224-
225-
if (!--count) backUpFromSmall();
226224
});
225+
backUpFromSmall();
227226
});
228227

229228
// if first time running, put it through the magic layout

js/rrssb.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)