       # An input may already be focused. If so, grab back the focus.
       @grabBackFocus document.activeElement if document.activeElement
 
-    if settings.isLoaded then activate() else settings.addEventListener "load", activate
+    if settings.isLoaded then activate() else Settings.addEventListener "load", activate
 
   grabBackFocus: (element) ->
     return @continueBubbling unless DomUtils.isEditable element


  load: -> @init() unless @port

  addEventListener: Settings.addEventListener.bind Settings

#
# Give this frame a unique (non-zero) id.
#

# Complete initialization work that sould be done prior to DOMReady.
#
initializePreDomReady = ->
  Settings.addEventListener "load", LinkHints.init.bind LinkHints
  settings.load()

  initializeModes()
