src/core/base/wnComponent.js
function (events)
		{
			var event = {};
			for (e in events)
			{
				var ref=events[e],
					e = 'event-'+e.replace('-','.');
				event[e]=ref;
				event[e].class=ref.class || 'wnEvent';
				event[e].eventName = e.split('-').pop();
				if (this.hasEvent(e))
				{
					_.merge(event[e],this.getEvent(e));
				}
				_eventsConfig[e]=_eventsConfig[e] || {};
				_.merge(_eventsConfig[e], event[e]);
			}
			return this;
		}
function (events)
		{
			var event = {};
			for (e in events)
			{
				var ref=events[e],
					e = 'event-'+e.replace('-','.');
				event[e]=ref;
				event[e].class=ref.class || 'wnEvent';
				event[e].eventName = e.split('-').pop();
				if (this.hasEvent(e))
				{
					_.merge(event[e],this.getEvent(e));
				}
				_eventsConfig[e]=_eventsConfig[e] || {};
				_.merge(_eventsConfig[e], event[e]);
			}
			return this;
		}
function ( events ) { var event = { } ; for ( e in events ) { var ref = events [ e ] , e = 'event-' + e . replace ( '-' , '.' ) ; event [ e ] = ref ; event [ e ] . class = ref . class || 'wnEvent' ; event [ e ] . eventName = e . split ( '-' ) . pop ( ) ; if ( this . hasEvent ( e ) ) { _ . merge ( event [ e ] , this . getEvent ( e ) ) ; } _eventsConfig [ e ] = _eventsConfig [ e ] || { } ; _ . merge ( _eventsConfig [ e ] , event [ e ] ) ; } return this ; }
Set new properties to the respective events
@param object $events events configurations
@return this
Set new properties to the respective events