Pass FunctionTemplate in BuildPrototype
This commit is contained in:
parent
895b8b47ee
commit
cb19efe49c
47 changed files with 71 additions and 71 deletions
|
@ -531,9 +531,9 @@ mate::Handle<App> App::Create(v8::Isolate* isolate) {
|
|||
|
||||
// static
|
||||
void App::BuildPrototype(
|
||||
v8::Isolate* isolate, v8::Local<v8::ObjectTemplate> prototype) {
|
||||
v8::Isolate* isolate, v8::Local<v8::FunctionTemplate> prototype) {
|
||||
auto browser = base::Unretained(Browser::Get());
|
||||
mate::ObjectTemplateBuilder(isolate, prototype)
|
||||
mate::ObjectTemplateBuilder(isolate, prototype->PrototypeTemplate())
|
||||
.SetMethod("quit", base::Bind(&Browser::Quit, browser))
|
||||
.SetMethod("exit", base::Bind(&Browser::Exit, browser))
|
||||
.SetMethod("focus", base::Bind(&Browser::Focus, browser))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue