src/main/java/com/mxgraph/util/mxEventSource.java
public void removeListener(mxIEventListener listener, String eventName)
	{
		if (eventListeners != null)
		{
			for (int i = eventListeners.size() - 2; i > -1; i -= 2)
			{
				if (eventListeners.get(i + 1) == listener
						&& (eventName == null || String.valueOf(
								eventListeners.get(i)).equals(eventName)))
				{
					eventListeners.remove(i + 1);
					eventListeners.remove(i);
				}
			}
		}
	}
/**
	 * Function: removeListener
	 *
	 * Removes all occurances of the given listener from the list of listeners.
	 */
removeListener
Removes all occurances of the given listener from the list of listeners.
removeListener Removes all occurances of the given listener from the list of listeners .
public void removeListener(mxIEventListener listener, String eventName)
	{
		if (eventListeners != null)
		{
			for (int i = eventListeners.size() - 2; i > -1; i -= 2)
			{
				if (eventListeners.get(i + 1) == listener
						&& (eventName == null || String.valueOf(
								eventListeners.get(i)).equals(eventName)))
				{
					eventListeners.remove(i + 1);
					eventListeners.remove(i);
				}
			}
		}
	}
public void removeListener ( mxIEventListener listener , String eventName ) { if ( eventListeners != null ) { for ( int i = eventListeners . size ( ) - 2 ; i > - 1 ; i -= 2 ) { if ( eventListeners . get ( i + 1 ) == listener && ( eventName == null || String . valueOf ( eventListeners . get ( i ) ) . equals ( eventName ) ) ) { eventListeners . remove ( i + 1 ) ; eventListeners . remove ( i ) ; } } } }
Function: removeListener
 Removes all occurances of the given listener from the list of listeners.
Function : removeListener Removes all occurances of the given listener from the list of listeners .