Skip to content

Commit

Permalink
just revert everythingg
Browse files Browse the repository at this point in the history
  • Loading branch information
jwklong authored Oct 27, 2024
1 parent fd2abcc commit b21a04d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/insertion_marker_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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_();
}
};
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit b21a04d

Please sign in to comment.