Module: nagvis Branch: master Commit: a136a4a95544b07bcb8413f13b7d09b269ac1751 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=a136a4a95544b07bcb8413f13b7d09b269ac1751
Author: Lars Michelsen <[email protected]> Date: Sun Jul 25 16:54:30 2010 +0200 Trying to prevent some javascript errors while reparsing map objects --- .../frontend/nagvis-js/js/NagVisStatefulObject.js | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/share/frontend/nagvis-js/js/NagVisStatefulObject.js b/share/frontend/nagvis-js/js/NagVisStatefulObject.js index 7fb96dd..3410d48 100644 --- a/share/frontend/nagvis-js/js/NagVisStatefulObject.js +++ b/share/frontend/nagvis-js/js/NagVisStatefulObject.js @@ -209,9 +209,11 @@ var NagVisStatefulObject = NagVisObject.extend({ // Append child to map and save reference in parsedObject var oMap = document.getElementById('map'); - this.parsedObject = oMap.appendChild(oContainerDiv); + if(oMap) { + this.parsedObject = oMap.appendChild(oContainerDiv); + oMap = null; + } oContainerDiv = null; - oMap = null; }, /** @@ -265,9 +267,11 @@ var NagVisStatefulObject = NagVisObject.extend({ // Append child to map and save reference in parsedObject var oMap = document.getElementById('map'); - this.parsedObject = oMap.appendChild(oContainerDiv); + if(oMap) { + this.parsedObject = oMap.appendChild(oContainerDiv); + oMap = null; + } oContainerDiv = null; - oMap = null; if(this.conf.view_type && this.conf.view_type == 'line') { this.drawLine(); ------------------------------------------------------------------------------ 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
