Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Export event-bus after running initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
notnotdrew committed Mar 28, 2017
1 parent 7bca3b8 commit db23667
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
4 changes: 0 additions & 4 deletions lib/event-bus.coffee

This file was deleted.

6 changes: 6 additions & 0 deletions lib/event-bus.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
var pageBus = require('page-bus');

module.exports = (function() {
return pageBus({key: 'learn-ide'})
})()

2 changes: 1 addition & 1 deletion lib/learn-ide.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ StatusView = require './views/status'
Notifier = require './notifier'
atomHelper = require './atom-helper'
auth = require './auth'
bus = require('./event-bus')()
bus = require './event-bus'
config = require './config'
{shell} = require 'electron'
updater = require './updater'
Expand Down
2 changes: 1 addition & 1 deletion lib/terminal.coffee
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{EventEmitter} = require 'events'
atomHelper = require './atom-helper'
path = require 'path'
bus = require('./event-bus')()
bus = require './event-bus'
AtomSocket = require('atom-socket')

module.exports = class Terminal extends EventEmitter
Expand Down
2 changes: 1 addition & 1 deletion lib/token.coffee
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
localStorage = require './local-storage'
bus = require('./event-bus')()
bus = require './event-bus'

TOKEN_KEY = 'learn-ide:token'

Expand Down
2 changes: 1 addition & 1 deletion lib/url-handler.coffee
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
url = require 'url'
{ipcRenderer} = require 'electron'
localStorage = require './local-storage'
bus = require('./event-bus')()
bus = require './event-bus'

getLabSlug = ->
{urlToOpen} = JSON.parse(decodeURIComponent(location.hash.substr(1)))
Expand Down

0 comments on commit db23667

Please sign in to comment.