Destroy parts object when leaving log

This commit is contained in:
Piotr Sarnacki 2014-09-12 16:20:52 +02:00
parent 1200d27fb3
commit 5c913fcaaa

View File

@ -33,6 +33,7 @@ Travis.reopen
console.log 'log view: will destroy' if Log.DEBUG
parts = @get('log.parts')
parts.removeArrayObserver(@, didChange: 'partsDidChange', willChange: 'noop')
parts.destroy()
@lineSelector?.willDestroy()
versionDidChange: (->