atom-archive / xray

An experimental next-generation Electron-based text editor
MIT License
8.48k stars 235 forks source link

[memo] There is no way to stop listening to buffer changes #163

Closed probablycorey closed 5 years ago

probablycorey commented 5 years ago

I can listen to Buffer changes using the onChange method, but there is no way to unregister that. Having the dom addEventListener/removeEventListener pattern would work. Being able to close the buffer when done with it would be another option.