code: function update() {
        if (!hoveredNode)
          return;
  
        var embedSettings = self.settings.embedObjects({
              prefix: prefix
            });
  
        // Deleting element before update
        self.domElements.groups.hovers.removeChild(
          self.domElements.hovers[hoveredNode.id]
        );
        delete self.domElements.hovers[hoveredNode.id];
  
        var hover = (renderers[hoveredNode.type] || renderers.def).create(
          hoveredNode,
          self.domElements.nodes[hoveredNode.id],
          self.measurementCanvas,
          embedSettings
        );
  
        self.domElements.hovers[hoveredNode.id] = hover;
  
        // Inserting the hover in the dom
        self.domElements.groups.hovers.appendChild(hover);
      }
docs: OPTIMIZE: perform a real update rather than a deletion