From 5abe161f7d7f5e18b67e662f873750c6aaec5d61 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Tue, 20 Sep 2011 15:26:17 -0700 Subject: [PATCH] Window is no longer a Pane --- src/window.coffee | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/window.coffee b/src/window.coffee index 5f71caea6..bf5df679a 100644 --- a/src/window.coffee +++ b/src/window.coffee @@ -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}) ->