Skip to content

Commit

Permalink
Rename the second argument of each from count to value and move the b…
Browse files Browse the repository at this point in the history
…ackUpFromSmall call to the outer loop.

This should fix kni-labs#191
  • Loading branch information
bonzani committed Jul 28, 2017
1 parent 71d5afb commit e5988f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions js/rrssb.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
var buttons = $('li', self);

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

var button = $(this);

Expand All @@ -221,9 +221,8 @@
sizeSmallBtns();
}
}

if (!--count) backUpFromSmall();
});
backUpFromSmall();
});

// if first time running, put it through the magic layout
Expand Down
2 changes: 1 addition & 1 deletion js/rrssb.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e5988f5

Please sign in to comment.