document.removeEventListener("click", this) code example
Example 1: removeeventlistener
// type function
element.removeEventListener("mousedown", handleMouseDown)
// full type list available here: https://developer.mozilla.org/en-US/docs/Web/Events
Example 2: removeEventListener
target.removeEventListener(type, listener[, options]);
target.removeEventListener(type, listener[, useCapture]);