移除标志参数

refactorgram

function setDimension(name, value) {
  if (name === "height") {
    this._height = value;
    return;
  }
  if (name === "width") {
    this._width = value;
    return;
  }
}

image/svg+xml

function setHeight(value) {this._height = value;}
function setWidth (value) {this._width = value;}

别名用显式方法替换参数