Emit 'page-title-updated' as javascript event for window.

This commit is contained in:
Cheng Zhao 2013-04-18 23:50:47 +08:00
parent 1309d04ca7
commit d3e4db7ba3
9 changed files with 82 additions and 4 deletions

View file

@ -27,14 +27,12 @@ AtomBindings::~AtomBindings() {
void AtomBindings::BindTo(v8::Handle<v8::Object> process) {
v8::HandleScope scope;
v8::Context::Scope context_scope(node::g_context);
node::SetMethod(process, "atom_binding", Binding);
}
void AtomBindings::AfterLoad() {
v8::HandleScope scope;
v8::Context::Scope context_scope(node::g_context);
v8::Handle<v8::Object> global = node::g_context->Global();
v8::Handle<v8::Object> atom =