bundles/org.eclipse.orion.client.core/web/orion/EventTarget.js
function(eventName, listener) {
			var listeners = this._namedListeners[eventName];
			if (listeners) {
				for (var i = 0; i < listeners.length; i++) {
					if (listeners[i] === listener) {
						if (listeners.length === 1) {
							delete this._namedListeners[eventName];
						} else {
							listeners.splice(i, 1);
						}
						break;
					}
				}
			}
		}
function(eventName, listener) {
			var listeners = this._namedListeners[eventName];
			if (listeners) {
				for (var i = 0; i < listeners.length; i++) {
					if (listeners[i] === listener) {
						if (listeners.length === 1) {
							delete this._namedListeners[eventName];
						} else {
							listeners.splice(i, 1);
						}
						break;
					}
				}
			}
		}
function ( eventName , listener ) { var listeners = this . _namedListeners [ eventName ] ; if ( listeners ) { for ( var i = 0 ; i < listeners . length ; i ++ ) { if ( listeners [ i ] === listener ) { if ( listeners . length === 1 ) { delete this . _namedListeners [ eventName ] ; } else { listeners . splice ( i , 1 ) ; } break ; } } } }
Removes an event listener for a named event
@param {String} eventName The event name
@param {Function} listener The function called when an event occurs
Removes an event listener for a named event