dist/js/materialize.js
function (eventName, data) {
      if (document.createEvent) {
        var evt = document.createEvent('HTMLEvents');
        evt.initEvent(eventName, true, false);
        evt = this.extend(evt, data);
        return this.each(function (v) {
          return v.dispatchEvent(evt);
        });
      }
    }
function (eventName, data) {
      if (document.createEvent) {
        var evt = document.createEvent('HTMLEvents');
        evt.initEvent(eventName, true, false);
        evt = this.extend(evt, data);
        return this.each(function (v) {
          return v.dispatchEvent(evt);
        });
      }
    }
function ( eventName , data ) { if ( document . createEvent ) { var evt = document . createEvent ( 'HTMLEvents' ) ; evt . initEvent ( eventName , true , false ) ; evt = this . extend ( evt , data ) ; return this . each ( function ( v ) { return v . dispatchEvent ( evt ) ; } ) ; } }
Modified
Triggers browser event
@param String eventName
@param Object data - Add properties to event object
Modified Triggers browser event