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

WebMIDIAPI.js cleanup #27

Closed jaycliff closed 11 years ago

jaycliff commented 11 years ago

added curly braces to the for and if statements. This should make the code intention clearer. Also cleaned up the anonymous function expressions, adding a space between "function" and "(" to avoid confusion (it looks like the name of the function is 'function', which is silly)

cwilso commented 11 years ago

I pulled most of these in to the GH-pages version, which will be the only branch going forward; note that the "curly braces for single-line for/if clauses" omission is actually a style thing (google style guide, personally I dislike it also).