d723173bc7
Basic usage is: remote = require 'remote' Window = remote.require 'window' w = new Window { width: 800, height: 600 } Still need to do: * Beter support for Array type. * Remote objects should cheat devtools. * Support cross-process callbacks.
6 lines
171 B
CoffeeScript
6 lines
171 B
CoffeeScript
EventEmitter = require('events').EventEmitter
|
|
|
|
Window = process.atom_binding('window').Window
|
|
Window.prototype.__proto__ = EventEmitter.prototype
|
|
|
|
module.exports = Window
|