Since we support inheritance of native objects, use js to send messages.
This commit is contained in:
parent
5a0aab2e4f
commit
3d267e2a9f
3 changed files with 8 additions and 19 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue