src/core/base/wnEvent.js
function (listener)
		{
			if ('function' !== typeof listener)
				return false;

			var list = _listeners;

			var position = -1;
		
			if (list === listener ||
      			(typeof list.listener === 'function' && list.listener === listener))
					_listeners = undefined;
			else if (typeof list === 'object')
			{
				for (var i = 0, length = list.length; i < length; i++)
				{
					if (list[i] === listener ||
						(list[i].listener && list[i].listener === listener))
					{
						position = i;
						break;
					}
				}

				if (position > -1)
					list.splice(position, 1);

				if (list.length == 1)
					_listeners = list[0];
			}

			return this;
        }
function (listener)
		{
			if ('function' !== typeof listener)
				return false;

			var list = _listeners;

			var position = -1;
		
			if (list === listener ||
      			(typeof list.listener === 'function' && list.listener === listener))
					_listeners = undefined;
			else if (typeof list === 'object')
			{
				for (var i = 0, length = list.length; i < length; i++)
				{
					if (list[i] === listener ||
						(list[i].listener && list[i].listener === listener))
					{
						position = i;
						break;
					}
				}

				if (position > -1)
					list.splice(position, 1);

				if (list.length == 1)
					_listeners = list[0];
			}

			return this;
        }
function ( listener ) { if ( 'function' !== typeof listener ) return false ; var list = _listeners ; var position = - 1 ; if ( list === listener || ( typeof list . listener === 'function' && list . listener === listener ) ) _listeners = undefined ; else if ( typeof list === 'object' ) { for ( var i = 0 , length = list . length ; i < length ; i ++ ) { if ( list [ i ] === listener || ( list [ i ] . listener && list [ i ] . listener === listener ) ) { position = i ; break ; } } if ( position > - 1 ) list . splice ( position , 1 ) ; if ( list . length == 1 ) _listeners = list [ 0 ] ; } return this ; }
Remove a listener from this event.
@param $listener function listener of the event
Remove a listener from this event .