From b21a04dc52b24f42316c84590ff3c6b3af3cab89 Mon Sep 17 00:00:00 2001 From: sussy layers dev <72522395+jwklong@users.noreply.github.com> Date: Sun, 27 Oct 2024 15:02:27 +0000 Subject: [PATCH] just revert everythingg --- core/insertion_marker_manager.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/insertion_marker_manager.js b/core/insertion_marker_manager.js index 239251ce8c..2136a43f33 100644 --- a/core/insertion_marker_manager.js +++ b/core/insertion_marker_manager.js @@ -548,8 +548,7 @@ Blockly.InsertionMarkerManager.prototype.maybeHidePreview_ = function(candidate) Blockly.InsertionMarkerManager.prototype.hidePreview_ = function() { if (this.highlightingBlock_) { this.unhighlightBlock_(); - } - if (this.markerConnection_) { + } else if (this.markerConnection_) { this.disconnectMarker_(); } }; @@ -639,8 +638,7 @@ Blockly.InsertionMarkerManager.prototype.disconnectMarker_ = function() { } if (imConn.targetConnection) { - imConn.targetConnection.sourceBlock_.unplug() - //throw 'markerConnection_ still connected at the end of disconnectInsertionMarker'; + throw 'markerConnection_ still connected at the end of disconnectInsertionMarker'; } this.markerConnection_ = null;