Skip to content

@c-spencer /now-iter.js
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
everyone.now.joinChat = function () {
this.now.inChat = true;
var userlist = [];
everyone.now.iterate(function (user) {
if (user.now.inChat) {
userlist.push(userId(user));
}
});
this.now.receiveUsers(userlist);
everyone.now.broadcastJoin(this);
}
everyone.now.iterate = function (callback) {
callback(this);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.