Skip to content

Commit

Permalink
emit a loaded event in mergeData (see remind.coffee in hubot-scripts …
Browse files Browse the repository at this point in the history
…for a hack)
  • Loading branch information
codec committed Oct 28, 2011
1 parent 77eb473 commit 5096a4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/robot.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ class Robot.Brain extends EventEmitter
mergeData: (data) ->
for k of (data or { })
@data[k] = data[k]

@emit 'loaded'

class Robot.Message
# Represents an incoming message from the chat.
Expand Down

0 comments on commit 5096a4c

Please sign in to comment.