Make objects registry code more structured.

This commit is contained in:
Cheng Zhao 2013-10-05 20:21:57 +08:00
parent 1524ced816
commit 1e1fec15b6
2 changed files with 47 additions and 36 deletions

View file

@ -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