dillon1000/react
Commit
Browse files Throw for Misue of LocalEventTrapMixin
Summary: If `getDOMNode()` returns null in `LocalEventTrapMixin`, `listener` will also be null and `accumulateInto` will throw. This changes `LocalEventTrapMixin` to throw a more helpful error message. Test Plan: Ran unit test successfully: ``` npm test LocalEventTrapMixin-test.js ```
Changed paths2 files
First-parent comparisonsrc/browser/ui/dom/components/LocalEventTrapMixin.js ModifiedA src/browser/ui/dom/components/__tests__/LocalEventTrapMixin-test.js AddedPatch
Files changed
Rendering syntax-highlighted changes…