Author:   Lars Michelsen <[email protected]>
Date:     Sat Apr  2 11:42:57 2011 +0200
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Sat Apr  2 11:42:57 2011 +0200

Catching exceptions when trying to remove context menu

---

 .../frontend/nagvis-js/js/NagVisStatefulObject.js  |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/share/frontend/nagvis-js/js/NagVisStatefulObject.js 
b/share/frontend/nagvis-js/js/NagVisStatefulObject.js
index 860d848..649013a 100644
--- a/share/frontend/nagvis-js/js/NagVisStatefulObject.js
+++ b/share/frontend/nagvis-js/js/NagVisStatefulObject.js
@@ -297,7 +297,9 @@ var NagVisStatefulObject = NagVisObject.extend({
                        // Remove context menu
                        // Needs to be removed after unsetting the eventhandlers
                        if(oContext) {
-                               this.parsedObject.removeChild(oContext);
+                               try {
+                                   this.parsedObject.removeChild(oContext);
+                               } catch(e) {}
                                oContext = null;
                        }
                        


------------------------------------------------------------------------------
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