diff --git a/bi/core.js b/bi/core.js index 32cf8562b..0ea9c5d3e 100644 --- a/bi/core.js +++ b/bi/core.js @@ -11592,7 +11592,7 @@ if (!window.BI) { overrides = sp; sp = sb; sb = function () { - sp.apply(this, arguments); + return sp.apply(this, arguments); }; } var F = function () { diff --git a/demo/js/fix-2.0/demo.js b/demo/js/fix-2.0/demo.js index fb946f8db..b6fb8fc54 100644 --- a/demo/js/fix-2.0/demo.js +++ b/demo/js/fix-2.0/demo.js @@ -20,7 +20,7 @@ var Store = BI.inherit(Fix.VM, { _init: function () { - this.comp = new Computed(model).model; + this.comp = new Computed(model); }, computed: { b: function () { diff --git a/dist/bundle.js b/dist/bundle.js index 05a8c5dad..39a133120 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -11643,7 +11643,7 @@ if (!window.BI) { overrides = sp; sp = sb; sb = function () { - sp.apply(this, arguments); + return sp.apply(this, arguments); }; } var F = function () { diff --git a/dist/core.js b/dist/core.js index 227900b6d..8de05c601 100644 --- a/dist/core.js +++ b/dist/core.js @@ -11592,7 +11592,7 @@ if (!window.BI) { overrides = sp; sp = sb; sb = function () { - sp.apply(this, arguments); + return sp.apply(this, arguments); }; } var F = function () { diff --git a/dist/demo.js b/dist/demo.js index ef8ec3265..7fba7c23e 100644 --- a/dist/demo.js +++ b/dist/demo.js @@ -10208,7 +10208,7 @@ BI.shortcut("demo.tmp", Demo.Func); var Store = BI.inherit(Fix.VM, { _init: function () { - this.comp = new Computed(model).model; + this.comp = new Computed(model); }, computed: { b: function () { diff --git a/dist/fix/fix.js b/dist/fix/fix.js index 96aaac581..2db7fad29 100644 --- a/dist/fix/fix.js +++ b/dist/fix/fix.js @@ -938,6 +938,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons initComputed(this, this.computed); initMethods(this, this.actions); this._init(); + if (this.$$model) { + return this.model; + } } VM.prototype.$watch = function $watch(expOrFn, cb, options) { diff --git a/src/core/base.js b/src/core/base.js index 9071f40ba..7b62f8b6d 100644 --- a/src/core/base.js +++ b/src/core/base.js @@ -442,7 +442,7 @@ if (!window.BI) { overrides = sp; sp = sb; sb = function () { - sp.apply(this, arguments); + return sp.apply(this, arguments); }; } var F = function () {