           element.style.display = 'none'
       unless haveMatch
         @addRule()
-        @onUpdated()
 
   # Append a row for a new rule.
   appendRule: (rule) ->

      $("saveOptions").removeAttribute "disabled"
      $("saveOptions").innerHTML = "Save Changes"


    $("saveOptions").addEventListener "click", ->
      Option.saveOptions()
      $("helpText").innerHTML = "Rules saved."

      # Scroll the new rule into view.
      exclusionScrollBox = $("exclusionScrollBox")
      exclusionScrollBox.scrollTop = exclusionScrollBox.scrollHeight
      @onUpdated()

  populateElement: (rules) ->
    for rule in rules
