Rename Editor attach and remove events in accordance w/ new scheme

'editor-open' -> 'editor:attached'
'before-remove' -> 'editor:will-be-removed'
This commit is contained in:
Kevin Sawicki & Nathan Sobo
2013-01-04 11:19:09 -07:00
parent 8e835acea4
commit 8098ee69f3
7 changed files with 10 additions and 10 deletions

View File

@@ -422,7 +422,7 @@ class Editor extends View
@resetDisplay()
@trigger 'editor-open', [this]
@trigger 'editor:attached', [this]
edit: (editSession) ->
index = @editSessions.indexOf(editSession)
@@ -680,7 +680,7 @@ class Editor extends View
remove: (selector, keepData) ->
return super if keepData
@trigger 'before-remove'
@trigger 'editor:will-be-removed'
@destroyEditSessions()