 		@trigger 'cancel'
 		method(@delegate, 'cancel')()
 		@detach()
-		
+
 	detach: ->
 		return unless @hasParent()
 		@detaching = true

		@attach()
		text = @panelEditor.getText()
		if text
			@handleUpdate text

	undo: ->

method = (delegate, method) ->
	delegate?[method]?.bind(delegate) or noop

module.exports =
class PromptView extends View
	@attach: -> new PromptView

