Catch disappeard ghosts. :-D
authorJan Schneider <jan@horde.org>
Fri, 11 Jun 2010 14:33:00 +0000 (16:33 +0200)
committerJan Schneider <jan@horde.org>
Fri, 11 Jun 2010 14:34:06 +0000 (16:34 +0200)
horde/js/dragdrop2.js

index 1c5c40b..69f82cc 100644 (file)
@@ -440,7 +440,9 @@ Drag = Class.create({
             if (!this.options.ghosting) {
                 this.element.setStyle({ visibility: 'visible' });
             }
-            this.ghost.remove();
+            try {
+                this.ghost.remove();
+            } catch (e) {}
             this.ghost = null;
         }