we only need the setTimeout on the first window load. must be some magic caching going on somewhere.

This commit is contained in:
Corey Johnson
2011-09-02 19:38:57 -07:00
parent 0fcbd5a306
commit db24c17d22

View File

@@ -49,12 +49,13 @@ exports.bindKey = bindKey = (name, shortcut, callback) ->
win: null
mac: shortcut
sender: 'editor'
exports.resize = (e) ->
exports.resize = (timeout=1) ->
setTimeout ->
editor.focus()
editor.resize()
, 1
, timeout
exports.resize(200)
bindKey 'open', 'Command-O', (env, args, request) ->
if file = Chrome.openPanel()