From 83af8860d9eebf41a8283266b894f2a74d155fef Mon Sep 17 00:00:00 2001 From: guy Date: Mon, 27 Nov 2017 09:18:02 +0800 Subject: [PATCH] update --- dist/fix/fix.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/fix/fix.js b/dist/fix/fix.js index ef55ab594..0a921c5ab 100644 --- a/dist/fix/fix.js +++ b/dist/fix/fix.js @@ -1044,7 +1044,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons } else { this.options = model || {}; } - var state = this.state && this.state(); + var state = _.isFunction(this.state) ? this.state() : this.state; var keys = _.keys(this.$$model).concat(_.keys(state)).concat(_.keys(this.computed)); defineProps(this, keys); this.$$model && (this.model.__ob__ = this.$$model.__ob__);