With editor.on('change', ...)
I added a listener, now I need to remove it again. editor.off(fromEditorOnReturnedFunction)
didn't work.
Removing listeners from an ace-editor
182 views Asked by K.. At
1
With editor.on('change', ...)
I added a listener, now I need to remove it again. editor.off(fromEditorOnReturnedFunction)
didn't work.
off
needs event name tooalso note that on returns function it was passed, so
editor.on('change', fn) == fn