bundles/org.eclipse.orion.client.collab/web/orion/collab/collabClient.js
function(peer) {
			if (this.peers[peer.id]) {
				// Update
				this.peers[peer.id] = peer;
			} else {
				// Add
				this.peers[peer.id] = peer;
			}
			if (this.collabHasFileAnnotation(peer.id)) {
				var annotation = this.getCollabFileAnnotation(peer.id);
				this.addOrUpdateCollabFileAnnotation(peer.id, contextPath, annotation.location);
			}
			if (this.otOrionAdapter && this.textView) {
				// Make sure we have view installed
				this.otOrionAdapter.updateLineAnnotationStyle(peer.id);
			}
		}
function(peer) {
			if (this.peers[peer.id]) {
				// Update
				this.peers[peer.id] = peer;
			} else {
				// Add
				this.peers[peer.id] = peer;
			}
			if (this.collabHasFileAnnotation(peer.id)) {
				var annotation = this.getCollabFileAnnotation(peer.id);
				this.addOrUpdateCollabFileAnnotation(peer.id, contextPath, annotation.location);
			}
			if (this.otOrionAdapter && this.textView) {
				// Make sure we have view installed
				this.otOrionAdapter.updateLineAnnotationStyle(peer.id);
			}
		}
function ( peer ) { if ( this . peers [ peer . id ] ) { // Update this . peers [ peer . id ] = peer ; } else { // Add this . peers [ peer . id ] = peer ; } if ( this . collabHasFileAnnotation ( peer . id ) ) { var annotation = this . getCollabFileAnnotation ( peer . id ) ; this . addOrUpdateCollabFileAnnotation ( peer . id , contextPath , annotation . location ) ; } if ( this . otOrionAdapter && this . textView ) { // Make sure we have view installed this . otOrionAdapter . updateLineAnnotationStyle ( peer . id ) ; } }
Add or update peer record

@param {CollabPeer} peer -
Add or update peer record