From 03bad4b2e7954d52d9f4376a965f212bd8774e66 Mon Sep 17 00:00:00 2001
From: Thomas Steur <thomas.steur@googlemail.com>
Date: Wed, 15 Oct 2014 22:46:21 +0200
Subject: [PATCH] refs #6432 should prevent possible TypeError

I was not able to reproduce this issue but also noticed there could
be an issue under circumstances. Need to know the exact steps to
reproduce
---
 plugins/SegmentEditor/javascripts/Segmentation.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/SegmentEditor/javascripts/Segmentation.js b/plugins/SegmentEditor/javascripts/Segmentation.js
index 1dac89a269..13126b2ccd 100644
--- a/plugins/SegmentEditor/javascripts/Segmentation.js
+++ b/plugins/SegmentEditor/javascripts/Segmentation.js
@@ -938,7 +938,7 @@ Segmentation = (function($) {
         };
 
         var closeForm = function () {
-            self.form.unbind().remove();
+            $(self.form).unbind().remove();
             self.target.closest('.segmentEditorPanel').removeClass('editing');
         };
 
-- 
GitLab