more coffeescriptish, i think

This commit is contained in:
Corey Johnson
2011-09-02 19:37:50 -07:00
parent 7309d86bfb
commit 0fcbd5a306

View File

@@ -15,8 +15,13 @@ Chrome =
el.setAttribute 'class', "pane " + position
el.innerHTML = html
el.addEventListener('DOMNodeInsertedIntoDocument', Editor.resize, false);
el.addEventListener('DOMNodeRemovedFromDocument', Editor.resize, false);
el.addEventListener 'DOMNodeInsertedIntoDocument', ->
Editor.resize()
, false
el.addEventListener 'DOMNodeRemovedFromDocument', ->
Editor.resize()
, false
switch position
when 'top', 'main'