Browse Source

无JIRA任务 fix更新

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

4
dist/fix/fix.js vendored

@ -456,11 +456,13 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
var ob = void 0;
if (value.__ob__ instanceof Observer) {
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);
}
if (ob) {
ob.parent = parentObserver || ob.parent;
ob.parentKey = parentKey;
}
return ob;
}

Loading…
Cancel
Save