 class HuffmanNodeCollection extends NodeCollection
   constructor: (shape) ->
     super shape
-
-  copyNodesFrom: (nc) ->
-    @nodes = nc.nodes
 
   mousedown: (pos, idx, t) ->
     for n in @nodes

    name: 'Shannon-Fano',
    action: (c, t) ->
      console.log('Shannon-Fano')
  },
  {
    name: 'Huffman',

      if @reconstruct_as?
        newcollection = new @reconstruct_as(this.shape)
        newcollection.copyNodesFrom(this)
        delete @reconstruct_as
        return newcollection
      else
        return this
