Make objects registry code more structured.
This commit is contained in:
parent
1524ced816
commit
1e1fec15b6
2 changed files with 47 additions and 36 deletions
|
@ -1,5 +1,4 @@
|
|||
bindings = process.atomBinding 'app'
|
||||
objectsRegistry = require '../../atom/objects-registry.js'
|
||||
EventEmitter = require('events').EventEmitter
|
||||
|
||||
Application = bindings.Application
|
||||
|
@ -11,7 +10,7 @@ app.getHomeDir = ->
|
|||
process.env[if process.platform is 'win32' then 'USERPROFILE' else 'HOME']
|
||||
|
||||
app.getBrowserWindows = ->
|
||||
objectsRegistry.getAllWindows()
|
||||
require('../../atom/objects-registry.js').getAllWindows()
|
||||
|
||||
app.setApplicationMenu = (menu) ->
|
||||
require('menu').setApplicationMenu menu
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue