guy 4 years ago
parent
commit
9121571a38
  1. 3
      dist/fix/fix.compact.js

3
dist/fix/fix.compact.js vendored

@ -187,11 +187,10 @@
var self = this; var self = this;
var render = BI.isFunction(this.options.render) ? this.options.render : this.render; var render = BI.isFunction(this.options.render) ? this.options.render : this.render;
var els; var els;
if (this.options.updateMode === "auto") { if (this.options.updateMode === "auto" && this._store) {
// 自动更新模式 // 自动更新模式
var childComponents = {}; var childComponents = {};
var rendered = false; var rendered = false;
initWatch(this, {});
this._watchers.push(Fix.watch(this.model, function () { this._watchers.push(Fix.watch(this.model, function () {
if (rendered) { if (rendered) {
var newEls = render && render.call(this); var newEls = render && render.call(this);

Loading…
Cancel
Save