Move the ability of calling _init to native_mate.
This commit is contained in:
parent
8b42990bb3
commit
541b855512
2 changed files with 2 additions and 8 deletions
|
@ -111,13 +111,7 @@ void Window::OnRendererResponsive() {
|
|||
mate::Wrappable* Window::New(mate::Arguments* args,
|
||||
const base::DictionaryValue& options) {
|
||||
scoped_ptr<base::DictionaryValue> copied_options(options.DeepCopy());
|
||||
Window* window = new Window(copied_options.get());
|
||||
window->Wrap(args->isolate(), args->GetThis());
|
||||
|
||||
// Give js code a chance to do initialization.
|
||||
node::MakeCallback(args->GetThis(), "_init", 0, NULL);
|
||||
|
||||
return window;
|
||||
return new Window(copied_options.get());
|
||||
}
|
||||
|
||||
void Window::Destroy() {
|
||||
|
|
2
vendor/native_mate
vendored
2
vendor/native_mate
vendored
|
@ -1 +1 @@
|
|||
Subproject commit f033e23ea3156db611e801af96eabd81d51ba85a
|
||||
Subproject commit c79aecf64de260dd239c6aed8397d3e152d7589d
|
Loading…
Reference in a new issue