diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2015-10-13 19:38:39 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2015-10-13 19:38:39 +0300 |
commit | 6aa4439f0f29b718bca6ff17f9676ed82856a18c (patch) | |
tree | 8d5b9d4472b86c274431b9729a82dea72452c6fa /plugins/SegmentEditor/javascripts | |
parent | 132240807fc7ab8ed80d132df5249fe9f4509513 (diff) |
prevent possible error in case jscroll is not defined
Diffstat (limited to 'plugins/SegmentEditor/javascripts')
-rw-r--r-- | plugins/SegmentEditor/javascripts/Segmentation.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/SegmentEditor/javascripts/Segmentation.js b/plugins/SegmentEditor/javascripts/Segmentation.js index ee1c4b532a..0e47bd7d19 100644 --- a/plugins/SegmentEditor/javascripts/Segmentation.js +++ b/plugins/SegmentEditor/javascripts/Segmentation.js @@ -377,7 +377,9 @@ Segmentation = (function($) { || $(e.target).hasClass("filterNoResults")) { e.stopPropagation(); } else { - self.jscroll.destroy(); + if (self.jscroll) { + self.jscroll.destroy(); + } self.target.closest('.segmentEditorPanel').removeClass('expanded'); } } else { |