Add isDestroyed method for classes with destroy method
This commit is contained in:
parent
ed1f9989b0
commit
9a20b33d97
5 changed files with 4 additions and 13 deletions
|
@ -161,6 +161,7 @@ void Tray::BuildPrototype(v8::Isolate* isolate,
|
|||
v8::Local<v8::ObjectTemplate> prototype) {
|
||||
mate::ObjectTemplateBuilder(isolate, prototype)
|
||||
.SetMethod("destroy", &Tray::Destroy, true)
|
||||
.SetMethod("isDestroyed", &Tray::IsDestroyed, true)
|
||||
.SetMethod("setImage", &Tray::SetImage)
|
||||
.SetMethod("setPressedImage", &Tray::SetPressedImage)
|
||||
.SetMethod("setToolTip", &Tray::SetToolTip)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue