Skip to content

Commit

Permalink
converted ide.coffee to a class
Browse files Browse the repository at this point in the history
  • Loading branch information
ngn committed Apr 23, 2015
1 parent a03c6cf commit 8b04103
Show file tree
Hide file tree
Showing 3 changed files with 244 additions and 247 deletions.
4 changes: 2 additions & 2 deletions client/connect.coffee
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ide = require './ide'
{IDE} = require './ide'
about = require './about'
prefs = require './prefs'

Expand Down Expand Up @@ -166,7 +166,7 @@ module.exports = (opts) ->
.on '*connected', ({host, port}) ->
if $listenDialog then $listenDialog.dialog 'close'; $listenDialog = null
if $connectDialog then $connectDialog.dialog 'close'; $connectDialog = null
ideInstance = ide(); ideInstance.setHostAndPort host, port; return
ide = new IDE; ide.setHostAndPort host, port; return
.on '*connectError', ({err}) ->
if $connectDialog then $connectDialog.dialog 'close'; $connectDialog = null
$.alert err, 'Error'; return
Expand Down
Loading

0 comments on commit 8b04103

Please sign in to comment.