GetConstructor now returns FunctionTemplate
authorCheng Zhao <zcbenz@gmail.com>
Tue, 2 Aug 2016 08:20:58 +0000 (17:20 +0900)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 2 Aug 2016 08:20:58 +0000 (17:20 +0900)
atom/browser/api/atom_api_menu.cc
atom/browser/api/atom_api_tray.cc
atom/browser/api/atom_api_window.cc
vendor/native_mate

index 3c8cb0e..e705f61 100644 (file)
@@ -193,7 +193,7 @@ void Initialize(v8::Local<v8::Object> exports, v8::Local<v8::Value> unused,
   Menu::SetConstructor(isolate, "Menu", base::Bind(&Menu::New));
 
   mate::Dictionary dict(isolate, exports);
-  dict.Set("Menu", Menu::GetConstructor(isolate));
+  dict.Set("Menu", Menu::GetConstructor(isolate)->GetFunction());
 #if defined(OS_MACOSX)
   dict.SetMethod("setApplicationMenu", &Menu::SetApplicationMenu);
   dict.SetMethod("sendActionToFirstResponder",
index a987030..7892c7b 100644 (file)
@@ -230,7 +230,7 @@ void Initialize(v8::Local<v8::Object> exports, v8::Local<v8::Value> unused,
   Tray::SetConstructor(isolate, "Tray", base::Bind(&Tray::New));
 
   mate::Dictionary dict(isolate, exports);
-  dict.Set("Tray", Tray::GetConstructor(isolate));
+  dict.Set("Tray", Tray::GetConstructor(isolate)->GetFunction());
 }
 
 }  // namespace
index 8433730..70ecf8f 100644 (file)
@@ -871,7 +871,8 @@ void Initialize(v8::Local<v8::Object> exports, v8::Local<v8::Value> unused,
   v8::Isolate* isolate = context->GetIsolate();
   Window::SetConstructor(isolate, "BrowserWindow", base::Bind(&Window::New));
 
-  mate::Dictionary browser_window(isolate, Window::GetConstructor(isolate));
+  mate::Dictionary browser_window(
+      isolate, Window::GetConstructor(isolate)->GetFunction());
   browser_window.SetMethod("fromId",
                            &mate::TrackableObject<Window>::FromWeakMapID);
   browser_window.SetMethod("getAllWindows",
index 2d26eeb..3a7a6ef 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 2d26eebca8d6e0e8fdfdf68197699ae78018fbda
+Subproject commit 3a7a6efffb4b3cd68967466cb1cab337509e3b07