Skip to content

Commit

Permalink
Changed more complex for to simple for per request
Browse files Browse the repository at this point in the history
Updated pull request to reduce the complexity of the for loop slightly.
  • Loading branch information
aspencer committed Sep 15, 2012
1 parent e9322ad commit 7ce6c9e
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 @@ -122,7 +122,7 @@
var x, ui, $e, callBack, conditionalCallBack, activeClass, targetName;

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

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

0 comments on commit 7ce6c9e

Please sign in to comment.