Closed latortuga closed 4 years ago
Gonna add some tests for this before merging.
Turns out my Rails 5.1 appraisal was not actually working correctly. So I took the opportunity to fix it up in this branch as well. Not ideal but I'm already neck-deep!
Fixes #55
Destructuring assignment on event objects transpiles to a call to Object.prototype.hasOwnProperty which is always false for Event objects. Instead, we can copy the fields directly.