src/Emitter.js
function clearListeners(context) {
		if (context == null) { throw new Error('clearListeners: context must be provided.'); }
		// notify for every listener we throw out.
		var removedListeners, trackRemovals = false;
		if (this._emitterMetaEventsOn === true) {
			trackRemovals = true;
			removedListeners = [];
		}
		this._emitterListeners.filterAll(function(record) {
			var keepListener = record.registeredContext !== context;
			if (trackRemovals && keepListener === false) {
				removedListeners.push(record);
			}
			return keepListener;
		});
		if (trackRemovals && removedListeners.length > 0) {
			notifyRemoves(this, removedListeners);
		}
	}
function clearListeners(context) {
		if (context == null) { throw new Error('clearListeners: context must be provided.'); }
		// notify for every listener we throw out.
		var removedListeners, trackRemovals = false;
		if (this._emitterMetaEventsOn === true) {
			trackRemovals = true;
			removedListeners = [];
		}
		this._emitterListeners.filterAll(function(record) {
			var keepListener = record.registeredContext !== context;
			if (trackRemovals && keepListener === false) {
				removedListeners.push(record);
			}
			return keepListener;
		});
		if (trackRemovals && removedListeners.length > 0) {
			notifyRemoves(this, removedListeners);
		}
	}
function clearListeners ( context ) { if ( context == null ) { throw new Error ( 'clearListeners: context must be provided.' ) ; } // notify for every listener we throw out. var removedListeners , trackRemovals = false ; if ( this . _emitterMetaEventsOn === true ) { trackRemovals = true ; removedListeners = [ ] ; } this . _emitterListeners . filterAll ( function ( record ) { var keepListener = record . registeredContext !== context ; if ( trackRemovals && keepListener === false ) { removedListeners . push ( record ) ; } return keepListener ; } ) ; if ( trackRemovals && removedListeners . length > 0 ) { notifyRemoves ( this , removedListeners ) ; } }
Clears all listeners registered for a particular context.

@param {Object} context The context that all listeners should be removed for.  May not be null.
Clears all listeners registered for a particular context .