cwilso / WebMIDIAPIShim

Polyfill using the Jazz NPAPI MIDI plugin to implement the Web MIDI API on Mac and Windows.
380 stars 53 forks source link

changed a way to create customEvent to prevent having error on IE10 on Win8. #28

Closed ryoyakawai closed 11 years ago

ryoyakawai commented 11 years ago

Change from var evt = new CustomEvent( "message" ); to var evt = document.createEvent( "Event" ); to avoid error(below) in IE10(10.0.9200.16384) on Windows8

------ >8 ---[Error from IE10 on Win8]--- >8 ------ SCRIPT445: Object doesn't support this action WebMIDIAPI.js, line 271 character 5 ------ >8 --------------------- >8 ------

cwilso commented 11 years ago

Oh, IE. :)

ryoyakawai commented 11 years ago

Thanks for this merge!!!