Remove space-pen require from text-editor-element

This commit is contained in:
Nathan Sobo 2015-09-04 11:13:25 -06:00
parent d98c678822
commit 2a79eaf7c2

View File

@ -1,5 +1,4 @@
{Emitter} = require 'event-kit'
{View, $, callRemoveHooks} = require 'space-pen'
Path = require 'path'
{defaults} = require 'underscore-plus'
TextBuffer = require 'text-buffer'
@ -119,7 +118,6 @@ class TextEditorElement extends HTMLElement
inputNode.addEventListener 'blur', => @dispatchEvent(new FocusEvent('blur', bubbles: false))
unmountComponent: ->
callRemoveHooks(this)
if @component?
@component.destroy()
@component.getDomNode().remove()