@textbus/collaborate 5.3.3 → 5.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -683,7 +683,7 @@ exports.Collaborate = /*#__PURE__*/ function() {
|
|
|
683
683
|
value: function syncSharedMapToLocalMap(sharedMap, localMap) {
|
|
684
684
|
var _this = this;
|
|
685
685
|
sharedMap.forEach(function(value, key) {
|
|
686
|
-
localMap[key] = _this.createLocalModelBySharedByModel(value);
|
|
686
|
+
localMap[key] = core.toRaw(_this.createLocalModelBySharedByModel(value));
|
|
687
687
|
});
|
|
688
688
|
this.syncObject(sharedMap, localMap);
|
|
689
689
|
}
|
|
@@ -703,7 +703,7 @@ exports.Collaborate = /*#__PURE__*/ function() {
|
|
|
703
703
|
for(var i = 0; i < sharedArray.length; i++){
|
|
704
704
|
var item = sharedArray.get(i);
|
|
705
705
|
if (!this.isArrayHoleElement(item)) {
|
|
706
|
-
raw[i] = this.createLocalModelBySharedByModel(item);
|
|
706
|
+
raw[i] = core.toRaw(this.createLocalModelBySharedByModel(item));
|
|
707
707
|
}
|
|
708
708
|
}
|
|
709
709
|
raw.length = sharedArray.length;
|