mirror of
https://github.com/atom/atom.git
synced 2026-01-22 13:28:01 -05:00
Clean up debugging
This commit is contained in:
@@ -26,12 +26,10 @@ describe "WorkspaceView", ->
|
||||
simulateReload = ->
|
||||
workspaceState = atom.workspace.serialize()
|
||||
projectState = atom.project.serialize()
|
||||
atom.workspaceView.debugId = 'initial'
|
||||
atom.workspaceView.remove()
|
||||
atom.project = atom.deserializers.deserialize(projectState)
|
||||
atom.workspace = Workspace.deserialize(workspaceState)
|
||||
atom.workspaceView = atom.workspace.getView(atom.workspace).__spacePenView
|
||||
atom.workspaceView.debugId = 'second'
|
||||
atom.workspaceView.attachToDom()
|
||||
|
||||
describe "when the serialized WorkspaceView has an unsaved buffer", ->
|
||||
|
||||
@@ -208,7 +208,6 @@ class EditorView extends View
|
||||
beforeRemove: ->
|
||||
return unless @attached
|
||||
@attached = false
|
||||
debugger unless @component?.isMounted()
|
||||
@unmountComponent()
|
||||
@editor.destroy()
|
||||
@trigger 'editor:detached', this
|
||||
|
||||
Reference in New Issue
Block a user