src/core/base/wnEvent.js
function (listener, prepend) {
			if ('function' === typeof listener)
			{
				var self = this,
					g = function (e)
					{
						e.lastListeners--;
						self.removeListener(g);
						listener.apply(listener, arguments);
					};
				g.listener = listener;
				
				this.addListener(g,prepend)
			}
			return this;
		}
function (listener, prepend) {
			if ('function' === typeof listener)
			{
				var self = this,
					g = function (e)
					{
						e.lastListeners--;
						self.removeListener(g);
						listener.apply(listener, arguments);
					};
				g.listener = listener;
				
				this.addListener(g,prepend)
			}
			return this;
		}
function ( listener , prepend ) { if ( 'function' === typeof listener ) { var self = this , g = function ( e ) { e . lastListeners -- ; self . removeListener ( g ) ; listener . apply ( listener , arguments ) ; } ; g . listener = listener ; this . addListener ( g , prepend ) } return this ; }
Add a new one-time-listener to this event.
@param $listener function listener of the event
Add a new one - time - listener to this event .