Browse Source

无JIRA fix: 做一次比较,省掉一次回流

es6
zsmj1994 3 years ago
parent
commit
b8ce359fb4
  1. 4
      src/core/controller/controller.bubbles.js

4
src/core/controller/controller.bubbles.js

@ -37,7 +37,9 @@ BI.BubblesController = BI.inherit(BI.Controller, {
});
}
var bubble = this.storeBubbles[name];
bubble.setValue("text");
if (bubble.getText() !== text) {
bubble.setText(text);
}
BI.createWidget({
type: "bi.default",

Loading…
Cancel
Save