Skip to content

Commit

Permalink
Make the linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
nhunzaker committed Aug 27, 2018
1 parent 4f69abf commit d8aadd3
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,5 +192,4 @@ describe('Local event listeners', () => {
expect(middle).toHaveBeenCalledTimes(1);
expect(bottom).toHaveBeenCalledTimes(1);
});

});
2 changes: 1 addition & 1 deletion packages/react-dom/src/events/ReactBrowserEventEmitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function getListenerTrackingFor(node: any) {
export function listenTo(
registrationName: string,
mountAt: Document | Element,
element: Element
element: Element,
) {
const mountAtListeners = getListenerTrackingFor(mountAt);
const dependencies = registrationNameDependencies[registrationName];
Expand Down
8 changes: 0 additions & 8 deletions packages/react-dom/src/events/ReactDOMEventListener.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,6 @@ import {
hasEventDispatched,
trackEventDispatch,
} from './ReactEventDispatchTracker';
import {
TOP_SCROLL,
TOP_WHEEL,
TOP_TOUCH_START,
TOP_TOUCH_END,
TOP_TOUCH_MOVE,
TOP_TOUCH_CANCEL,
} from './DOMTopLevelEventTypes';

const {isInteractiveTopLevelEventType} = SimpleEventPlugin;

Expand Down
4 changes: 2 additions & 2 deletions packages/react-dom/src/events/ReactEventDispatchTracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export function trackEventDispatch(event: TrackableEvent) {

export function hasEventDispatched(event: TrackableEvent): boolean {
if (!event.hasOwnProperty(lastTarget)) {
return false
return false;
}

return event[lastTarget] !== event.currentTarget
return event[lastTarget] !== event.currentTarget;
}

0 comments on commit d8aadd3

Please sign in to comment.