From d9d50275a737de4c83a186d4c1dc7997ee2adb25 Mon Sep 17 00:00:00 2001
From: PavelBegunkov <asml.silence@gmail.com>
Date: Thu, 8 Sep 2016 20:44:01 +0300
Subject: [PATCH] #145 Fix resizing of popup list and item deletion

---
 media/js/event_inspector/eventInspector.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/media/js/event_inspector/eventInspector.js b/media/js/event_inspector/eventInspector.js
index 8e903447e..58830e16e 100644
--- a/media/js/event_inspector/eventInspector.js
+++ b/media/js/event_inspector/eventInspector.js
@@ -6,9 +6,9 @@ var inspectorList;
 $(function () {
     $('body').append('<div class="EventInspectorList"></div>');
     inspectorList = $('div.EventInspectorList');
-    inspectorList.on('click', 'div.EventItem', () => $(this).remove());
+    inspectorList.on('click', 'div.EventItem', function() { $(this).remove(); });
 
-    $(window).scroll(() => {
+    $(window).scroll(function() {
         let size = $(this).scrollTop() > 40 ? '20px' : '50px';
         inspectorList.css('top', size);
     });
@@ -34,7 +34,7 @@ var EventInspector = {
         else
             this.show(failMsg, 'error');
     },
-    
+
     error: function (text) {
         this.show(text, 'error');
     },
-- 
GitLab