_registerDebouncedEvent(eventName, config) {
		let debouncedEventName = `debounced${eventName}.estatico`,
			methodName = eventName.charAt(0).toUpperCase() + eventName.slice(1);

		this.$window.on(eventName, debounce(function(event) {
			$(document).triggerHandler(debouncedEventName, event);
		}.bind(this), config.interval));

		// adds a public shorthand method, e.g. addResizeListener to the WindowEventListener class
		this[`addDebounced${methodName}Listener`] = this._addEventListener.bind(this, debouncedEventName);
		this[`removeDebounced${methodName}Listener`] = this._removeEventListener.bind(this, debouncedEventName);

		// Save to global namespace
		$.extend(true, estatico, { events: {} });
		estatico.events[eventName] = debouncedEventName;
	}
/**
	 * Window event has only one debounced handler.
	 * Achieved by triggering another fake event, which is the one we subscribe to
	 * @param {String} eventName
	 * @param {Object} config
	 * @private
	 */
Window event has only one debounced handler.
Achieved by triggering another fake event, which is the one we subscribe to
@param {String} eventName
@param {Object} config
@private
Window event has only one debounced handler . Achieved by triggering another fake event which is the one we subscribe to @param { String } eventName @param { Object } config @private
_registerDebouncedEvent(eventName, config) {
		let debouncedEventName = `debounced${eventName}.estatico`,
			methodName = eventName.charAt(0).toUpperCase() + eventName.slice(1);
		this.$window.on(eventName, debounce(function(event) {
			$(document).triggerHandler(debouncedEventName, event);
		}.bind(this), config.interval));
		this[`addDebounced${methodName}Listener`] = this._addEventListener.bind(this, debouncedEventName);
		this[`removeDebounced${methodName}Listener`] = this._removeEventListener.bind(this, debouncedEventName);
		$.extend(true, estatico, { events: {} });
		estatico.events[eventName] = debouncedEventName;
	}
_registerDebouncedEvent ( eventName , config ) { let debouncedEventName = ` ${ eventName } ` , methodName = eventName . charAt ( 0 ) . toUpperCase ( ) + eventName . slice ( 1 ) ; this . $window . on ( eventName , debounce ( function ( event ) { $ ( document ) . triggerHandler ( debouncedEventName , event ) ; } . bind ( this ) , config . interval ) ) ; this [ ` ${ methodName } ` ] = this . _addEventListener . bind ( this , debouncedEventName ) ; this [ ` ${ methodName } ` ] = this . _removeEventListener . bind ( this , debouncedEventName ) ; $ . extend ( true , estatico , { events : { } } ) ; estatico . events [ eventName ] = debouncedEventName ; }
Window event has only one debounced handler.
Window event has only one debounced handler .
// adds a public shorthand method, e.g. addResizeListener to the WindowEventListener class // Save to global namespace