mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Remove scroll listener on destroy so we don’t call undefined onScroll
/cc @izuzak because no PR, @as-cii because this fixes an unexpected issue with your change.
This commit is contained in:
@@ -13,6 +13,7 @@ class ScrollbarComponent
|
||||
@domNode.addEventListener 'scroll', @onScrollCallback
|
||||
|
||||
destroy: ->
|
||||
@domNode.removeEventListener 'scroll', @onScrollCallback
|
||||
@onScroll = null
|
||||
|
||||
getDomNode: ->
|
||||
|
||||
Reference in New Issue
Block a user