Error in extractEvents
If the event is on the window object, topScroll, for instance, the topLevelTarget will not have getAttribute defined. Restore the previous `|| !topLevelTarget.attributes` check to avoid an error on every scroll.
Ian Obermiller committed
May 19, 2014 at 13:17 UTC
bf5dfc87dc2a422122b0addc43cabda4d3cf4c98
1 file changed
+1
-1
src/browser/eventPlugins/AnalyticsEventPluginFactory.js
+1
-1
@@ -149,7 +149,7 @@ function extractEvents(
149
topLevelTargetID,
150
nativeEvent) {
151
var currentEvent = topLevelTypesToAnalyticsEvent[topLevelType];
152
- if (!currentEvent || !topLevelTarget) {
152
+ if (!currentEvent || !topLevelTarget || !topLevelTarget.attributes) {
153
return null;
154
}
155