diff --git a/src/base/single/single.js b/src/base/single/single.js index c4d15291d..97b2591a7 100644 --- a/src/base/single/single.js +++ b/src/base/single/single.js @@ -200,18 +200,6 @@ BI.Single = BI.inherit(BI.Widget, { return this.options.value; }, - update: function (props, shouldUpdate) { - if (BI.isObject(shouldUpdate)) { - props = shouldUpdate; - } - if ("value" in props) { - this.setValue(props.value); - } - if ("text" in props) { - this.setText && this.setText(props.text); - } - }, - destroyed: function () { if (BI.isNotNull(this.showTimeout)) { clearTimeout(this.showTimeout); diff --git a/src/core/wrapper/layout.js b/src/core/wrapper/layout.js index 6b10e753d..871b56aeb 100644 --- a/src/core/wrapper/layout.js +++ b/src/core/wrapper/layout.js @@ -366,9 +366,9 @@ BI.Layout = BI.inherit(BI.Widget, { return child._update(this._getOptions(vnode), shouldUpdate); } if (shouldUpdate === null && !this._compare(oldVnode, vnode)) { - if (child.update) { - return child.update(this._getOptions(vnode)); - } + // if (child.update) { + // return child.update(this._getOptions(vnode)); + // } return this.updateItemAt(index, vnode); } },