Author:   Lars Michelsen <[email protected]>
Date:     Sat Apr  2 13:34:28 2011 +0200
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Sat Apr  2 13:34:28 2011 +0200

Fixed js error on automaps while updating NagVis

---

 share/frontend/nagvis-js/js/NagVisLine.js |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/share/frontend/nagvis-js/js/NagVisLine.js 
b/share/frontend/nagvis-js/js/NagVisLine.js
index 125947f..5c7f811 100644
--- a/share/frontend/nagvis-js/js/NagVisLine.js
+++ b/share/frontend/nagvis-js/js/NagVisLine.js
@@ -54,9 +54,11 @@ var NagVisLine = NagVisStatelessObject.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;
                
                this.drawLine();
        },


------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to