Skip to content

Commit

Permalink
fix error of none config
Browse files Browse the repository at this point in the history
  • Loading branch information
yongkangchen committed May 22, 2015
1 parent 0d34b81 commit c93f10e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ handleEvent = (e, cmd)->
return unless projectPath

projectObj = projectDict[projectPath]
projectObj[cmd](fullPath)
projectObj[cmd]?(fullPath)

reload = (projectPath)->
projectDict[projectPath]?.dispose()
Expand Down Expand Up @@ -92,6 +92,8 @@ module.exports =
return unless projectPath

projectObj = projectDict[projectPath]
return unless projectObj

if fullPath == projectObj.configPath
projectObj = reload(projectPath)

Expand Down

0 comments on commit c93f10e

Please sign in to comment.