     )
 
     @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

      @undoCapture()

      # Remove the block from the tree.
      @spliceOut @draggingBlock

      @clearHighlightCanvas()


    # 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).
