Pass FunctionTemplate in BuildPrototype

This commit is contained in:
Cheng Zhao 2016-08-02 18:08:12 +09:00
parent 895b8b47ee
commit cb19efe49c
47 changed files with 71 additions and 71 deletions

View file

@ -155,8 +155,8 @@ bool Menu::IsVisibleAt(int index) const {
// static
void Menu::BuildPrototype(v8::Isolate* isolate,
v8::Local<v8::ObjectTemplate> prototype) {
mate::ObjectTemplateBuilder(isolate, prototype)
v8::Local<v8::FunctionTemplate> prototype) {
mate::ObjectTemplateBuilder(isolate, prototype->PrototypeTemplate())
.MakeDestroyable()
.SetMethod("insertItem", &Menu::InsertItemAt)
.SetMethod("insertCheckItem", &Menu::InsertCheckItemAt)