This commit is contained in:
Corey Johnson & Nathan Sobo
2011-12-15 15:15:30 -08:00
parent 73477c29c5
commit 0438ecad0b

View File

@@ -12,6 +12,9 @@ class Editor
@buffer = new Buffer(url)
@buildAceEditor()
destroy: ->
@aceEditor.destroy()
buildAceEditor: ->
editorElement = $("<div class='editor'>")
$('#main').append(editorElement)
@@ -22,6 +25,4 @@ class Editor
getAceSession: ->
@aceEditor.getSession()
destroy: ->
@aceEditor.destroy()