Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@gmail.com>2015-10-13 19:38:39 +0300
committerThomas Steur <thomas.steur@gmail.com>2015-10-13 19:38:39 +0300
commit6aa4439f0f29b718bca6ff17f9676ed82856a18c (patch)
tree8d5b9d4472b86c274431b9729a82dea72452c6fa /plugins/SegmentEditor
parent132240807fc7ab8ed80d132df5249fe9f4509513 (diff)
prevent possible error in case jscroll is not defined
Diffstat (limited to 'plugins/SegmentEditor')
-rw-r--r--plugins/SegmentEditor/javascripts/Segmentation.js4
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 {