   initializeRegions: ->
     @regions = []
     @buildRegion(jQuery(region)) for region in jQuery("[#{Mercury.config.regions.attribute}]", @document)
-    return unless @options.visible
+    return unless @visible
     for region in @regions
       if region.focus
         region.focus()

  constructor: (@saveUrl = null, @options = {}) ->
    throw Mercury.I18n('Mercury.PageEditor can only be instantiated once.') if window.mercuryInstance

    @options.visible = true unless (@options.visible == false || @options.visible == 'no')
    @options.saveDataType = 'json' unless (@options.saveDataType == false || @options.saveDataType)
    @visible = @options.visible

    window.mercuryInstance = @
    @regions = []

    @snippetToolbar = new Mercury.SnippetToolbar(@document)

    @hijackLinksAndForms()
    Mercury.trigger('mode', {mode: 'preview'}) unless @visible


  bindDocumentEvents: ->
