Author: eallen
Date: 2009-06-11 09:10:56 -0400 (Thu, 11 Jun 2009)
New Revision: 3445
Modified:
mgmt/trunk/cumin/resources/app.js
Log:
Fix intermittent javascript error on mouseout of charts.
Modified: mgmt/trunk/cumin/resources/app.js
===================================================================
--- mgmt/trunk/cumin/resources/app.js 2009-06-11 11:41:54 UTC (rev 3444)
+++ mgmt/trunk/cumin/resources/app.js 2009-06-11 13:10:56 UTC (rev 3445)
@@ -111,10 +111,11 @@
event.stop();
});
mImg.addEvent('mouseout', function(event){
- if (event.relatedTarget.className.indexOf("img") == 0) {
- event.stop();
- return false;
- }
+ if (event.relatedTarget && event.relatedTarget.className)
+ if (event.relatedTarget.className.indexOf("img") == 0) {
+ event.stop();
+ return false;
+ }
var oHighlight =
document.body.getElement(".imgHighlight_red");
if (oHighlight) oHighlight.style.display = "none";
oHighlight = document.body.getElement(".imgHighlight_green");