win: Newly created window should also be aware of application menu.

This commit is contained in:
Cheng Zhao 2013-10-05 21:05:59 +08:00
parent caaab22841
commit a182de20a4
5 changed files with 17 additions and 3 deletions

View file

@ -101,6 +101,9 @@ v8::Handle<v8::Value> Window::New(const v8::Arguments &args) {
new Window(args.This(), static_cast<base::DictionaryValue*>(options.get()));
// Give js code a chance to do initialization.
node::MakeCallback(args.This(), "_init", 0, NULL);
return args.This();
}