diff --git a/src/core/widget.js b/src/core/widget.js index d9b52911f..919d3edbe 100644 --- a/src/core/widget.js +++ b/src/core/widget.js @@ -40,7 +40,8 @@ _constructor: function () { if (this.setup) { pushTarget(this); - this.render = this.setup(); + this.service = this.setup(); + this.render = BI.isPlainObject(this.service) ? this.service.render : this.service; popTarget(); } },