Skip to content

Commit

Permalink
Merge pull request hubotio#94 from codec/brainsss
Browse files Browse the repository at this point in the history
emit a loaded event in mergeData
  • Loading branch information
atmos committed Oct 28, 2011
2 parents 2ec62c3 + 95e85fd commit 4dbb6b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/robot.coffee
Expand Up @@ -214,6 +214,8 @@ class Robot.Brain extends EventEmitter
mergeData: (data) ->
for k of (data or { })
@data[k] = data[k]

@emit 'loaded', @data

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

0 comments on commit 4dbb6b9

Please sign in to comment.