Browse Source

无JIRA任务 fix更新

master
王瑞 6 years ago
parent
commit
8cbeed5f05
  1. 8
      dist/fix/fix.js

8
dist/fix/fix.js vendored

@ -456,11 +456,13 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
var ob = void 0; var ob = void 0;
if (value.__ob__ instanceof Observer) { if (value.__ob__ instanceof Observer) {
ob = value.__ob__; ob = value.__ob__;
} else if (observerState.shouldConvert && (_.isArray(value) || isPlainObject(value))) { } else if (observerState.shouldConvert && Object.isExtensible(value) && (_.isArray(value) || isPlainObject(value))) {
ob = new Observer(value); ob = new Observer(value);
} }
ob.parent = parentObserver || ob.parent; if (ob) {
ob.parentKey = parentKey; ob.parent = parentObserver || ob.parent;
ob.parentKey = parentKey;
}
return ob; return ob;
} }

Loading…
Cancel
Save