use webcontents id to identify callbacks
This commit is contained in:
parent
3a154ab8ea
commit
2c59f4567e
6 changed files with 25 additions and 21 deletions
|
@ -12,11 +12,11 @@ namespace atom {
|
|||
|
||||
namespace api {
|
||||
|
||||
IDWeakMap::IDWeakMap() {
|
||||
id_weak_map_.reset(new atom::IDWeakMap);
|
||||
IDWeakMap::IDWeakMap() : id_weak_map_(new atom::IDWeakMap) {
|
||||
}
|
||||
|
||||
IDWeakMap::~IDWeakMap() {
|
||||
id_weak_map_ = nullptr;
|
||||
}
|
||||
|
||||
void IDWeakMap::Set(v8::Isolate* isolate,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue