lib/WidgetDef.js
function(type, targetMethod, elId) {

        if (!targetMethod) {
            // The event handler method is allowed to be conditional. At render time if the target
            // method is null then we do not attach any direct event listeners.
            return;
        }

        if (!this.domEvents) {
            this.domEvents = [];
        }
        this.domEvents.push(type);
        this.domEvents.push(targetMethod);
        this.domEvents.push(elId);
    }
function(type, targetMethod, elId) {

        if (!targetMethod) {
            // The event handler method is allowed to be conditional. At render time if the target
            // method is null then we do not attach any direct event listeners.
            return;
        }

        if (!this.domEvents) {
            this.domEvents = [];
        }
        this.domEvents.push(type);
        this.domEvents.push(targetMethod);
        this.domEvents.push(elId);
    }
function ( type , targetMethod , elId ) { if ( ! targetMethod ) { // The event handler method is allowed to be conditional. At render time if the target // method is null then we do not attach any direct event listeners. return ; } if ( ! this . domEvents ) { this . domEvents = [ ] ; } this . domEvents . push ( type ) ; this . domEvents . push ( targetMethod ) ; this . domEvents . push ( elId ) ; }
Registers a DOM event for a nested HTML element associated with the
widget. This is only done for non-bubbling events that require
direct event listeners to be added.
@param  {String} type The DOM event type ("mouseover", "mousemove", etc.)
@param  {String} targetMethod The name of the method to invoke on the scoped widget
@param  {String} elId The DOM element ID of the DOM element that the event listener needs to be added too
Registers a DOM event for a nested HTML element associated with the widget . This is only done for non - bubbling events that require direct event listeners to be added .