Skip to content

Commit

Permalink
Simplify multiple exports
Browse files Browse the repository at this point in the history
  • Loading branch information
tombell committed Jan 11, 2013
1 parent fac0123 commit cd0b2a1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
6 changes: 4 additions & 2 deletions src/listener.coffee
Expand Up @@ -37,5 +37,7 @@ class TextListener extends Listener
if message instanceof TextMessage
message.match @regex

module.exports.Listener = Listener
module.exports.TextListener = TextListener
module.exports = {
Listener
TextListener
}
12 changes: 7 additions & 5 deletions src/message.coffee
Expand Up @@ -42,8 +42,10 @@ class CatchAllMessage extends Message
# message - The original message.
constructor: (@message) ->

module.exports.Message = Message
module.exports.TextMessage = TextMessage
module.exports.EnterMessage = EnterMessage
module.exports.LeaveMessage = LeaveMessage
module.exports.CatchAllMessage = CatchAllMessage
module.exports = {
Message
TextMessage
EnterMessage
LeaveMessage
CatchAllMessage
}

0 comments on commit cd0b2a1

Please sign in to comment.