mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Fixed me emitting 'me:synced' and anything listening for that.
This commit is contained in:
parent
908772d8fe
commit
49c8360d5b
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ init = ->
|
||||||
me.set 'testGroupNumber', Math.floor(Math.random() * 256)
|
me.set 'testGroupNumber', Math.floor(Math.random() * 256)
|
||||||
me.patch()
|
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) ->
|
module.exports.createUser = (userObject, failure=backboneFailure, nextURL=null) ->
|
||||||
user = new User(userObject)
|
user = new User(userObject)
|
||||||
|
|
Loading…
Reference in a new issue