thecoolmacdude
thecoolmacdude

Reputation: 2277

removeEventListener not removing from getEventListeners

I am trying to capture a signature response to a Topaz Signature pad. I have the following code in JavaScript. When I call removeEventListener, why is it adding another SignResponse instead of removing it from the getEventListeners(document) object?

Watch Window

var self = this;

function SignResponse(myself, event) {
    //do stuff
}

document.removeEventListener('SignResponse', SignResponse.bind(this, self), false);

document.addEventListener('SignResponse', SignResponse.bind(this, self), false);

Upvotes: 0

Views: 72

Answers (0)

Related Questions