Disable event.path handling

Looks like #4558 isn't ready yet and we'd like an interim fix.
This commit is contained in:
Ben Alpert
2015-08-07 13:33:42 -07:00
parent 7f119d41c7
commit 016a1907e1
+12 -7
View File
@@ -62,13 +62,18 @@ PooledClass.addPoolingTo(
);
function handleTopLevelImpl(bookKeeping) {
if (bookKeeping.nativeEvent.path && bookKeeping.nativeEvent.path.length > 1) {
// New browsers have a path attribute on native events
handleTopLevelWithPath(bookKeeping);
} else {
// Legacy browsers don't have a path attribute on native events
handleTopLevelWithoutPath(bookKeeping);
}
// TODO: Re-enable event.path handling
//
// if (bookKeeping.nativeEvent.path && bookKeeping.nativeEvent.path.length > 1) {
// // New browsers have a path attribute on native events
// handleTopLevelWithPath(bookKeeping);
// } else {
// // Legacy browsers don't have a path attribute on native events
// handleTopLevelWithoutPath(bookKeeping);
// }
void handleTopLevelWithPath; // temporarily unused
handleTopLevelWithoutPath(bookKeeping);
}
// Legacy browsers don't have a path attribute on native events