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


      @setCursor(futureCursorLocation) if futureCursorLocation?

      # Fire the event for sound
      @fireEvent 'block-click'

# FLOATING BLOCK SUPPORT
# ================================

    )

    @setCursor @draggingBlock.start

    for el, i in rememberedSocketOffsets
      @rememberedSockets.push {
        socket: new CrossDocumentLocation(
          @floatingBlocks.length - 1,
          new model.Location(el.offset, 'socket')
        )
        text: el.text
      }

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