atom.js
function removeListener(listeners) {
		for (var i = listeners.length; --i >= 0;) {
			// There should only be ONE exhausted listener.
			if (!listeners[i].calls) {
				return listeners.splice(i, 1);
			}
		}
	}
function removeListener(listeners) {
		for (var i = listeners.length; --i >= 0;) {
			// There should only be ONE exhausted listener.
			if (!listeners[i].calls) {
				return listeners.splice(i, 1);
			}
		}
	}
function removeListener ( listeners ) { for ( var i = listeners . length ; -- i >= 0 ; ) { // There should only be ONE exhausted listener. if ( ! listeners [ i ] . calls ) { return listeners . splice ( i , 1 ) ; } } }
Helper to remove an exausted listener from the listeners array
Helper to remove an exausted listener from the listeners array