dillon1000/react

Commit

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
```
Browse files
Changed paths2 files
First-parent comparison
M src/browser/ui/dom/components/LocalEventTrapMixin.js ModifiedA src/browser/ui/dom/components/__tests__/LocalEventTrapMixin-test.js Added
Patch

Files changed

Rendering syntax-highlighted changes…