Editor emits an editor-open event when attached

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-04-19 17:55:41 -07:00
committed by Corey Johnson
parent b1ab0735c7
commit 800f16bb29
2 changed files with 12 additions and 0 deletions

View File

@@ -206,6 +206,7 @@ class Editor extends View
@hiddenInput.width(@charWidth)
@setMaxLineLength() if @softWrap
@focus() if @isFocused
@trigger 'editor-open', [this]
rootView: ->
@parents('#root-view').view()