Remove callbackId when callback is removed from registry

This commit is contained in:
Cheng Zhao 2016-06-24 11:21:32 +09:00
parent 552c9b7f0a
commit f792b6c752

View file

@ -55,7 +55,11 @@ class CallbacksRegistry {
}
remove (id) {
return delete this.callbacks[id]
const callback = this.callbacks[id]
if (callback) {
v8Util.deleteHiddenValue(callback, 'callbackId')
delete this.callbacks[id]
}
}
}