Permalink
Browse files

Tell the SocialAPI when we are logging out.

  • Loading branch information...
1 parent caa7ae4 commit e6d0864e8d0af2a0c57920855208cc562b17b2f3 Mark Banner committed with fqueze Dec 3, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 static/worker.js
View
@@ -73,6 +73,8 @@ var handlers = {
'worker.reload': function(port, msg) {
broadcast(msg.topic, msg.data);
userData = {};
+ apiPort.postMessage({topic: "social.user-profile", data: userData});
+ broadcast('social.user-profile', userData);
apiPort.postMessage({topic: 'social.reload-worker'});
},
'social.initialize': function(port, data) {
@@ -101,7 +103,7 @@ var handlers = {
}
}
if (!newUserData) {
- //dump("no user data!\n");
+ // Logging out is handled by worker.reload above.
return;
}
if (userData.userName != newUserData.userName) {

0 comments on commit e6d0864

Please sign in to comment.