From 29a9a3ada39014e19aba77bfe8a79cafce2df2b7 Mon Sep 17 00:00:00 2001 From: Victor Homyakov Date: Thu, 19 Jul 2012 13:10:29 +0300 Subject: [PATCH] Console warning with detailed information about non-DOM events --- js/VisualEvent.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/VisualEvent.js b/js/VisualEvent.js index 34c3660..6d81a74 100644 --- a/js/VisualEvent.js +++ b/js/VisualEvent.js @@ -572,6 +572,9 @@ VisualEvent.prototype = { // Element is hidden if ( $(eventNode.node).filter(':visible').length === 0 ) { + if ( window.console && window.console.warn ) { + console.warn("Event on invisible element", eventNode.node, eventNode); + } this.s.nonDomEvents += 1; return; }