Add isDestroyed method for classes with destroy method

This commit is contained in:
Cheng Zhao 2015-11-19 17:08:16 +08:00
parent ed1f9989b0
commit 9a20b33d97
5 changed files with 4 additions and 13 deletions

View file

@ -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)