mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
update native-mate ref
This commit is contained in:
committed by
Samuel Attard
parent
6b77fa5b3b
commit
bb36a26950
@@ -26,10 +26,11 @@ void PreventDefault(mate::Arguments* args) {
|
||||
// Create a pure JavaScript Event object.
|
||||
v8::Local<v8::Object> CreateEventObject(v8::Isolate* isolate) {
|
||||
if (event_template.IsEmpty()) {
|
||||
event_template.Reset(isolate,
|
||||
ObjectTemplateBuilder(isolate)
|
||||
.SetMethod("preventDefault", &PreventDefault)
|
||||
.Build());
|
||||
event_template.Reset(
|
||||
isolate,
|
||||
ObjectTemplateBuilder(isolate, v8::ObjectTemplate::New(isolate))
|
||||
.SetMethod("preventDefault", &PreventDefault)
|
||||
.Build());
|
||||
}
|
||||
|
||||
return v8::Local<v8::ObjectTemplate>::New(isolate, event_template)
|
||||
|
||||
Reference in New Issue
Block a user