 
   # Populate options. The constructor adds each new object to "Option.all".
   for name, type of options
-    new type(name,enableSaveButton)
+    new type(name,onUpdated)
 
 initPopupPage = ->
   chrome.tabs.getSelected null, (tab) ->

        element.style.display = 'none'
    @addRule() unless haveMatch

  # Provide visual feedback when a pattern does not match the current page.
  activatePatternWatcher: (element) ->
    patternElement = element.children[0].firstChild
    patternElement.addEventListener "keyup", =>


$ = (id) -> document.getElementById id
bgUtils = chrome.extension.getBackgroundPage().Utils
bgSettings = chrome.extension.getBackgroundPage().Settings
