Module: nagvis Branch: master Commit: c7015e2b8d092c9bb69207910dc176d7d4b564b1 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=c7015e2b8d092c9bb69207910dc176d7d4b564b1
Author: Lars Michelsen <[email protected]> Date: Mon Aug 2 13:40:29 2010 +0200 Fixed random js error when the page is reloading while the worker renders the hover menu --- share/frontend/nagvis-js/js/NagVisObject.js | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/share/frontend/nagvis-js/js/NagVisObject.js b/share/frontend/nagvis-js/js/NagVisObject.js index dfd379f..5b6b6fe 100644 --- a/share/frontend/nagvis-js/js/NagVisObject.js +++ b/share/frontend/nagvis-js/js/NagVisObject.js @@ -255,8 +255,10 @@ var NagVisObject = Base.extend({ } // Add the hover menu functionality to the object - oObj.onmouseover = function() { var sT = sTemplateCode; var iH = iHoverDelay; displayHoverMenu(sT, iH); sT = null; iH = null; }; - oObj.onmouseout = function() { hideHoverMenu(); }; + if(oObj) { + oObj.onmouseover = function() { var sT = sTemplateCode; var iH = iHoverDelay; displayHoverMenu(sT, iH); sT = null; iH = null; }; + oObj.onmouseout = function() { hideHoverMenu(); }; + } } oObj = null; ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
