src/polyfills.js
function MouseEvent(eventType, params) {
    params = params || { bubbles: false, cancelable: false };
    var mouseEvent = document.createEvent('MouseEvent');
    mouseEvent.initMouseEvent(eventType, params.bubbles, params.cancelable, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);

    return mouseEvent;
  }
function MouseEvent(eventType, params) {
    params = params || { bubbles: false, cancelable: false };
    var mouseEvent = document.createEvent('MouseEvent');
    mouseEvent.initMouseEvent(eventType, params.bubbles, params.cancelable, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);

    return mouseEvent;
  }
function MouseEvent ( eventType , params ) { params = params || { bubbles : false , cancelable : false } ; var mouseEvent = document . createEvent ( 'MouseEvent' ) ; mouseEvent . initMouseEvent ( eventType , params . bubbles , params . cancelable , window , 0 , 0 , 0 , 0 , 0 , false , false , false , false , 0 , null ) ; return mouseEvent ; }
Polyfills DOM4 CustomEvent
Polyfills DOM4 CustomEvent