Window is no longer a Pane

This commit is contained in:
Corey Johnson
2011-09-20 15:26:17 -07:00
parent 664fa5b06f
commit 5abe161f7d

View File

@@ -3,8 +3,10 @@ $ = require 'jquery'
Chrome = require 'chrome'
Pane = require 'pane'
{bindKey} = require 'keybinder'
module.exports =
class Window extends Pane
class Window
controller: null
document: null
nswindow: null
@@ -18,12 +20,15 @@ class Window extends Pane
'Command-Ctrl-R' : @reload
constructor: (options={}) ->
super options
for option, value of options
@[option] = value
for shortcut, method of @keymap()
bindKey @, shortcut, method
Editor = require 'editor'
@document = new Editor
initialize: ->
@nswindow = @controller?.window
addPane: ({position, html}) ->