 
     # Remove the block from the tree.
     @undoCapture()
+    rememberedSocketOffsets = @spliceRememberedSocketOffsets(@draggingBlock)
     @spliceOut @draggingBlock
 
     # If we dropped it off in the palette, abort (so as to delete the block).

    )

    @setCursor @draggingBlock.start

    # Now that we've done that, we can annul stuff.
    @draggingBlock = null

      @undoCapture()

      # Remove the block from the tree.
      rememberedSocketOffsets = @spliceRememberedSocketOffsets(@draggingBlock)
      @spliceOut @draggingBlock

      @clearHighlightCanvas()
