From 8debc8bd706fec7705d4d4d32f8dae9bba5284fa Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Fri, 11 Jun 2010 16:33:00 +0200 Subject: [PATCH] Catch disappeard ghosts. :-D --- horde/js/dragdrop2.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/horde/js/dragdrop2.js b/horde/js/dragdrop2.js index 1c5c40b4e..69f82cc69 100644 --- a/horde/js/dragdrop2.js +++ b/horde/js/dragdrop2.js @@ -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; } -- 2.11.0