         when escape
           @toggle() unless @modal_active
       e.stopPropagation();
-      
+    
     $(document).keydown (e) =>
       return unless @keys_enabled
       switch e.keyCode


  reload: (i) ->
    @log "reload(#{i})"
    @empty(i)
    @options.pages[i]['loaded'] = false
    @options.pages[i]['pages_loaded'] = 0

  set_options: (opts) ->
    @current = 0
    @keys_enabled = true
    @reloading = false
    ref = this
    default_options = 
      debug: true
