Destroy parts object when leaving log
This commit is contained in:
parent
1200d27fb3
commit
5c913fcaaa
|
@ -33,6 +33,7 @@ Travis.reopen
|
||||||
console.log 'log view: will destroy' if Log.DEBUG
|
console.log 'log view: will destroy' if Log.DEBUG
|
||||||
parts = @get('log.parts')
|
parts = @get('log.parts')
|
||||||
parts.removeArrayObserver(@, didChange: 'partsDidChange', willChange: 'noop')
|
parts.removeArrayObserver(@, didChange: 'partsDidChange', willChange: 'noop')
|
||||||
|
parts.destroy()
|
||||||
@lineSelector?.willDestroy()
|
@lineSelector?.willDestroy()
|
||||||
|
|
||||||
versionDidChange: (->
|
versionDidChange: (->
|
||||||
|
|
Loading…
Reference in New Issue
Block a user