static eventTrigger(element, eventName, data){
        try{
          var event = new CustomEvent(eventName, {detail: data});
        } catch(e){
          var event = document.createEvent('CustomEvent');
          event.initCustomEvent(eventName, true, true, data);
        }
        element.dispatchEvent(event);
      }
Trigger custom event.
@static
@param {DOMObject} element - Target element on the DOM.
@param {String} eventName - Event name.
@param {Object} data -