standalone 087 conditional testing on weird place?

10 views
Skip to first unread message

Ingrid Sedé

unread,
Nov 8, 2014, 2:17:10 PM11/8/14
to ajax...@googlegroups.com
Hi,

In this piece off code (checked it at Github to see if it wasn't one of my mistakes) i see this;

	addUserToOnlineList: function(userID, userName, userRole) {
		this.usersList.push(userID);
		this.userNamesList.push(userName);
		if(this.dom['onlineList']) {
			this.updateDOM(
				'onlineList',
				this.getUserNodeString(userID, userName, userRole),
				(this.userID === userID)
			);
		}
	},
Looks like a conditional test but what is it doing there?
Reply all
Reply to author
Forward
0 new messages