scripts/loader-src.js
/**
     * Add event to element for handle after script loaded
     * @param {*} element pointer to element
     * @param {string} eventType events for add
     * @param {Function} eventHandle pointer to handle
     * */
Add event to element for handle after script loaded
@param {*} element pointer to element
@param {string} eventType events for add
@param {Function} eventHandle pointer to handle
Add event to element for handle after script loaded @param { * } element pointer to element @param { string } eventType events for add @param { Function } eventHandle pointer to handle
addEvent(element, eventType, eventHandle) {
        let on = 'on';
        if (element.addEventListener) {
            element.addEventListener(eventType, eventHandle, false);
        } else if (element.attachEvent) {
            element.attachEvent(on + eventType, eventHandle);
        } else {
            element[on + eventType] = eventHandle;
        }
    }
addEvent ( element , eventType , eventHandle ) { let on = 'on' ; if ( element . addEventListener ) { element . addEventListener ( eventType , eventHandle , false ) ; } else if ( element . attachEvent ) { element . attachEvent ( on + eventType , eventHandle ) ; } else { element [ on + eventType ] = eventHandle ; } }
Add event to element for handle after script loaded
 @param {*} element pointer to element
 @param {string} eventType events for add
 @param {Function} eventHandle pointer to handle
Add event to element for handle after script loaded @param { * } element pointer to element @param { string } eventType events for add @param { Function } eventHandle pointer to handle