Reputation: 2277
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?
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