code: function(shape, index) {
                  var parent = this.getShapeNode();
                  parent.removeChild(shape.node);
                  shape.trigger("remove", {
                      container: this
                  });
                  if (shape.notifyTreeModification) {
                      shape.notifyTreeModification("treeremove", this);
                  }
              }
docs: /* private