WIP: Split panes can be closed with meta-w

Still some issues… view gets screwed up after closing panes in certain layout arrangements.
This commit is contained in:
Nathan Sobo
2012-03-20 12:29:47 -06:00
parent e74f0e66ac
commit 285c04ea62
4 changed files with 56 additions and 6 deletions

View File

@@ -2,7 +2,8 @@ _ = require 'underscore'
_.mixin
remove: (array, element) ->
array.splice(array.indexOf(element), 1)
index = array.indexOf(element)
array.splice(index, 1) if index >= 0
sum: (array) ->
sum = 0