Skip to content

Commit

Permalink
Merge pull request #15 from aspencer/master
Browse files Browse the repository at this point in the history
Change Iteration Type from for...in to more classic for loop to avoid issues with extended Array object in some browsers.
  • Loading branch information
Adam Chambers committed Sep 15, 2012
2 parents 6980d73 + 7ce6c9e commit 6975507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/libs/gumby.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
var x, ui, $e, callBack, conditionalCallBack, activeClass, targetName;

// loop round gumby UI elements applying active/inactive class logic
for (x in simpleUI.ui) {
for(x = 0, x < simpleUI.ui.length; x++) {

ui = simpleUI.ui[x];
$e = $(ui.selector);
Expand Down

0 comments on commit 6975507

Please sign in to comment.