lib/dashboard/dashboard_operations.js
function addListener(uid) {
		var addedListener = false;
		if(typeof(dashboardListeners[uid]) === 'undefined') {
			dashboardListeners[uid] = {
				'startTime': new Date(),
				'numIterations': 0,
				'uid': uid,
				'numStarts': 1,
			};
			addedListener = true;
		} else {
			// Don't add the listener.
			dashboardListeners[uid].numStarts += 1;
		}
		return addedListener;
	}
function addListener(uid) {
		var addedListener = false;
		if(typeof(dashboardListeners[uid]) === 'undefined') {
			dashboardListeners[uid] = {
				'startTime': new Date(),
				'numIterations': 0,
				'uid': uid,
				'numStarts': 1,
			};
			addedListener = true;
		} else {
			// Don't add the listener.
			dashboardListeners[uid].numStarts += 1;
		}
		return addedListener;
	}
function addListener ( uid ) { var addedListener = false ; if ( typeof ( dashboardListeners [ uid ] ) === 'undefined' ) { dashboardListeners [ uid ] = { 'startTime' : new Date ( ) , 'numIterations' : 0 , 'uid' : uid , 'numStarts' : 1 , } ; addedListener = true ; } else { // Don't add the listener. dashboardListeners [ uid ] . numStarts += 1 ; } return addedListener ; }
Function that adds a data listener.
Function that adds a data listener .