           @_createSubRuleControls rule.size()
         for control, i in @subRuleControls
           control.input.value = rule.rules[i].stringify()
+          selectOption control.select, @rule.rules[i].stringify(), ""            
+
         
       set_rule: (rule) ->
         @rule = rule

    for eName in eventNames
      element.addEventListener eName, handler
    null
      
  # Main application class
  class GolApplication
      constructor: (field_size, rule_string, container_id, canvas_id, overlay_id, time_display_id) ->

        golApp.ghost_click_detector.onTouch()
        handler e

    fill_rules E("select-rule"), predefinedRules

    
    fastButton "clear_field", -> golApp.do_clear()
