Skip to content
Browse files

Ultra minor refactoring

  • Loading branch information...
1 parent bc30626 commit b77f641f19f48dc571c8ce5aaa754ff25352abd6 @gmarty committed Jun 8, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 source/ui.js
View
6 source/ui.js
@@ -218,8 +218,10 @@ if (typeof $ !== 'undefined') {
for (var groupName in roms) {
if (roms.hasOwnProperty(groupName)) {
var optgroup = $('<optgroup></optgroup>').
- attr('label', groupName);
- for (var i = 0; i < roms[groupName].length; i++) {
+ attr('label', groupName),
+ length = roms[groupName].length,
+ i = 0;
+ for (; i < length; i++) {
$('<option>' + roms[groupName][i][0] + '</option>')
.attr('value', roms[groupName][i][1])
.appendTo(optgroup);

0 comments on commit b77f641

Please sign in to comment.
Something went wrong with that request. Please try again.