Fix lint issue

This commit is contained in:
Nicolas Gallagher
2016-07-22 11:35:27 -07:00
parent 7aa760506a
commit 769931061a

View File

@@ -84,7 +84,7 @@ function normalizeMouseEvent(nativeEvent) {
}
function normalizeNativeEvent(nativeEvent) {
if (nativeEvent.originalEvent) { return nativeEvent; }
if (nativeEvent.originalEvent) { return nativeEvent }
const eventType = nativeEvent.type || (nativeEvent.originalEvent && nativeEvent.originalEvent.type) || ''
const mouse = eventType.indexOf('mouse') >= 0
return mouse ? normalizeMouseEvent(nativeEvent) : normalizeTouchEvent(nativeEvent)