miolo-model 3.0.0-beta.180 → 3.0.0-beta.181
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/package.json +1 -1
- package/src/MioloArray.mjs +5 -5
- package/src/MioloModel.mjs +1 -1
package/package.json
CHANGED
package/src/MioloArray.mjs
CHANGED
|
@@ -98,10 +98,10 @@ export default class MioloArray extends CacheMixin(Array) {
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
clone() {
|
|
101
|
-
const
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
return
|
|
101
|
+
const currentData = this.getData()
|
|
102
|
+
const clonedData = JSON.parse(JSON.stringify(currentData))
|
|
103
|
+
const clone = new this.constructor(clonedData)
|
|
104
|
+
// Object.assign(clone, this)
|
|
105
|
+
return clone
|
|
106
106
|
}
|
|
107
107
|
}
|