Rename 'window' module to 'browser_window' module. Fix #3.
This commit is contained in:
parent
f477ec09c0
commit
072ac8ba0b
7 changed files with 15 additions and 15 deletions
|
@ -1,12 +1,12 @@
|
|||
EventEmitter = require('events').EventEmitter
|
||||
Window = require 'window'
|
||||
BrowserWindow = require 'browser_window'
|
||||
|
||||
Menu = process.atomBinding('menu').Menu
|
||||
Menu::__proto__ = EventEmitter.prototype
|
||||
|
||||
popup = Menu::popup
|
||||
Menu::popup = (window) ->
|
||||
throw new TypeError('Invalid window') unless window?.constructor is Window
|
||||
throw new TypeError('Invalid window') unless window?.constructor is BrowserWindow
|
||||
|
||||
popup.call this, window
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue