LSview/JS : Added a test to avoid possible errors
authorBenjamin Renard <brenard@easter-eggs.com>
Sun, 25 Oct 2009 23:21:09 +0000 (23:21 +0000)
committerBenjamin Renard <brenard@easter-eggs.com>
Sun, 25 Oct 2009 23:21:09 +0000 (23:21 +0000)
trunk/includes/js/LSview.js

index e180920..6dc98ee 100644 (file)
@@ -43,7 +43,8 @@ var LSview = new Class({
     },
     
     onTdLSobjectListNamesOut: function(td) {
-      td.imgEdit.destroy();
+      if(td.imgEdit)
+        td.imgEdit.destroy();
     },
     
     onRemoveListBtnClick: function(event,a) {