mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Add Pane.moveItemToPane specs. Fix bug moving the last edit session.
This commit is contained in:
committed by
probablycorey
parent
fe0d3cad36
commit
fab3b4564e
@@ -705,7 +705,7 @@ class Editor extends View
|
||||
|
||||
afterRemove: ->
|
||||
@removed = true
|
||||
@activeEditSession.destroy()
|
||||
@activeEditSession?.destroy()
|
||||
$(window).off(".editor-#{@id}")
|
||||
$(document).off(".editor-#{@id}")
|
||||
|
||||
|
||||
@@ -128,7 +128,9 @@ class Pane extends View
|
||||
viewClass = item.getViewClass()
|
||||
otherItemsForView = @items.filter (i) -> i.getViewClass?() is viewClass
|
||||
unless otherItemsForView.length
|
||||
@viewsByClassName[viewClass.name]?.remove()
|
||||
view = @viewsByClassName[viewClass.name]
|
||||
view?.setModel(null)
|
||||
view?.remove()
|
||||
delete @viewsByClassName[viewClass.name]
|
||||
|
||||
viewForItem: (item) ->
|
||||
|
||||
Reference in New Issue
Block a user