update comment with todo

This commit is contained in:
Rachel Fenichel
2018-08-06 10:29:12 -07:00
parent b65491e656
commit a8d52903e2

View File

@@ -402,7 +402,7 @@ Blockly.Block.prototype.unplugFromStack_ = function(opt_healStack) {
// Disconnect the next statement.
var nextTarget = this.nextConnection.targetConnection;
nextTarget.disconnect();
// Shouldn't checkType happen earlier?
// TODO (#1994): Check types before unplugging.
if (previousTarget && previousTarget.checkType_(nextTarget)) {
// Attach the next statement to the previous statement.
previousTarget.connect(nextTarget);