Fixed me emitting 'me:synced' and anything listening for that.

This commit is contained in:
Scott Erickson 2014-07-07 16:53:34 -07:00
parent 908772d8fe
commit 49c8360d5b

View file

@ -12,7 +12,7 @@ init = ->
me.set 'testGroupNumber', Math.floor(Math.random() * 256)
me.patch()
Backbone.listenTo(me, 'sync', Backbone.Mediator.publish('me:synced', {me: me}))
Backbone.listenTo(me, 'sync', -> Backbone.Mediator.publish('me:synced', {me: me}))
module.exports.createUser = (userObject, failure=backboneFailure, nextURL=null) ->
user = new User(userObject)