From c6c4f17cfaa14fe79edca29a70cc9bb736f81168 Mon Sep 17 00:00:00 2001 From: LianaHus Date: Thu, 18 Apr 2019 13:33:59 +0200 Subject: [PATCH 1/2] fixed error --- src/app/ui/card.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/app/ui/card.js b/src/app/ui/card.js index 0419a53971..0216b356c9 100644 --- a/src/app/ui/card.js +++ b/src/app/ui/card.js @@ -34,9 +34,11 @@ module.exports = class Card { function trigger (el) { var body = self._view.cardBody var status = self._view.statusBar - el.classList.toggle('fa-angle-up') - var arrow = el.classList.toggle('fa-angle-down') ? 'up' : 'down' - self.event.trigger('expandCollapseCard', [arrow, body, status]) + if (el.classList) { + el.classList.toggle('fa-angle-up') + var arrow = el.classList.toggle('fa-angle-down') ? 'up' : 'down' + self.event.trigger('expandCollapseCard', [arrow, body, status]) + } } // HTML From a45a644ecd5bbaf92db7532b2276758fe0ec3717 Mon Sep 17 00:00:00 2001 From: LianaHus Date: Thu, 18 Apr 2019 13:48:09 +0200 Subject: [PATCH 2/2] removed Copy to clipboard label from compiler tab --- src/app/debugger/debuggerUI/vmDebugger/DropdownPanel.js | 2 +- src/app/tabs/compile-tab.js | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/app/debugger/debuggerUI/vmDebugger/DropdownPanel.js b/src/app/debugger/debuggerUI/vmDebugger/DropdownPanel.js index 6d3b57d147..2004976005 100644 --- a/src/app/debugger/debuggerUI/vmDebugger/DropdownPanel.js +++ b/src/app/debugger/debuggerUI/vmDebugger/DropdownPanel.js @@ -99,7 +99,7 @@ DropdownPanel.prototype.update = function (_data, _header) { DropdownPanel.prototype.setContent = function (node) { if (!this.view) return var parent = this.view.querySelector('.dropdownpanel div.dropdowncontent') - parent.replaceChild(node, parent.firstElementChild) + if (parent) parent.replaceChild(node, parent.firstElementChild) } DropdownPanel.prototype.render = function (overridestyle) { diff --git a/src/app/tabs/compile-tab.js b/src/app/tabs/compile-tab.js index 955db1e7fd..5ce375812d 100644 --- a/src/app/tabs/compile-tab.js +++ b/src/app/tabs/compile-tab.js @@ -183,9 +183,6 @@ class CompileTab extends CompilerApi {
-
- Copy to clipboard -