We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1441a01 commit 26d10d9Copy full SHA for 26d10d9
1 file changed
packages/core/src/exposed-thing.ts
@@ -122,7 +122,9 @@ export default class ExposedThing extends TD.Thing implements WoT.ExposedThing {
122
this.actions = {};
123
this.events = {};
124
125
- const deepClonedModel = structuredClone(thingModel);
+ // Deep clone the Thing Model
126
+ // without functions or methods
127
+ const deepClonedModel = JSON.parse(JSON.stringify(thingModel));
128
Object.assign(this, deepClonedModel);
129
130
// unset "@type":"tm:ThingModel" ?
0 commit comments