mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Clear references to scrollbar components
This commit is contained in:
@@ -12,6 +12,9 @@ class ScrollbarComponent
|
||||
|
||||
@domNode.addEventListener 'scroll', @onScrollCallback
|
||||
|
||||
destroy: ->
|
||||
@onScroll = null
|
||||
|
||||
getDomNode: ->
|
||||
@domNode
|
||||
|
||||
|
||||
@@ -119,6 +119,14 @@ class TextEditorComponent
|
||||
@gutterContainerComponent?.destroy()
|
||||
@domElementPool.clear()
|
||||
|
||||
@verticalScrollbarComponent.destroy()
|
||||
@horizontalScrollbarComponent.destroy()
|
||||
|
||||
@verticalScrollbarComponent = null
|
||||
@horizontalScrollbarComponent = null
|
||||
@onVerticalScroll = null
|
||||
@onHorizontalScroll = null
|
||||
|
||||
getDomNode: ->
|
||||
@domNode
|
||||
|
||||
|
||||
Reference in New Issue
Block a user