Since we support inheritance of native objects, use js to send messages.

This commit is contained in:
Cheng Zhao 2013-06-18 18:47:13 +08:00
parent 5a0aab2e4f
commit 3d267e2a9f
3 changed files with 8 additions and 19 deletions

View file

@ -20,13 +20,6 @@ namespace api {
EventEmitter::EventEmitter(v8::Handle<v8::Object> wrapper) {
Wrap(wrapper);
// process.emit('ATOM_BROWSER_INTERNAL_NEW', this).
v8::Handle<v8::Value> args[] = {
v8::String::New("ATOM_BROWSER_INTERNAL_NEW"),
wrapper,
};
node::MakeCallback(node::process, "emit", 2, args);
}
EventEmitter::~EventEmitter() {