mirror of
https://github.com/atom/atom.git
synced 2026-02-08 13:45:09 -05:00
more coffeescriptish, i think
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user