function registerOptions(var_args) {
  for (var i = 0; i < arguments.length; i++) {
    var name = arguments[i];
    optionNames.push(name);
    var dropdown = document.getElementById(name);
    dropdown.addEventListener('change', saveOptions);
  }
}
// Set event handlers on the named game option dropdowns.
Set event handlers on the named game option dropdowns.
Set event handlers on the named game option dropdowns .
function registerOptions(var_args) {
  for (var i = 0; i < arguments.length; i++) {
    var name = arguments[i];
    optionNames.push(name);
    var dropdown = document.getElementById(name);
    dropdown.addEventListener('change', saveOptions);
  }
}
function registerOptions ( var_args ) { for ( var i = 0 ; i < arguments . length ; i ++ ) { var name = arguments [ i ] ; optionNames . push ( name ) ; var dropdown = document . getElementById ( name ) ; dropdown . addEventListener ( 'change' , saveOptions ) ; } }
Set event handlers on the named game option dropdowns.
Set event handlers on the named game option dropdowns .