projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
552c9b7
)
Remove callbackId when callback is removed from registry
author
Cheng Zhao
<zcbenz@gmail.com>
Fri, 24 Jun 2016 02:21:32 +0000
(11:21 +0900)
committer
Cheng Zhao
<zcbenz@gmail.com>
Fri, 24 Jun 2016 02:22:48 +0000
(11:22 +0900)
lib/common/api/callbacks-registry.js
patch
|
blob
|
history
diff --git
a/lib/common/api/callbacks-registry.js
b/lib/common/api/callbacks-registry.js
index
7a9bf53
..
459c392
100644
(file)
--- a/
lib/common/api/callbacks-registry.js
+++ b/
lib/common/api/callbacks-registry.js
@@
-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]
+ }
}
}