Author:   Lars Michelsen <[email protected]>
Date:     Sun Apr 10 22:52:58 2011 +0200
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Sun Apr 10 22:52:58 2011 +0200

Cleaned up useless code

---

 share/frontend/nagvis-js/js/edit.js |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/share/frontend/nagvis-js/js/edit.js 
b/share/frontend/nagvis-js/js/edit.js
index 66b8469..abdf10d 100644
--- a/share/frontend/nagvis-js/js/edit.js
+++ b/share/frontend/nagvis-js/js/edit.js
@@ -340,9 +340,6 @@ function addClick(e) {
     //
     // If this is reached all object coords have been collected
     //
-
-    if(addFollow)
-       addShape.clear();
     
     if(document.body)
        document.body.style.cursor = 'default';
@@ -682,12 +679,10 @@ function gridParse() {
        // Only show when user configured to see a grid
        if(oViewProperties.grid_show === 1) {
                // Create grid container and append to map
-               var oMap = document.getElementById('map');
                var oGrid = document.createElement('div');
                oGrid.setAttribute('id', 'grid');
-               oMap.appendChild(oGrid);
+               document.getElementById('map').appendChild(oGrid);
                oGrid = null;
-               oMap = null;
                
                // Add an options: grid_show, grid_steps, grid_color
                var grid = new jsGraphics('grid');


------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to