Skip to content

Commit eb54f15

Browse files
committed
update and verify developer docs
1 parent 52b71c8 commit eb54f15

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

packages/shadow-objects/docs/03-api/03-view-components.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,6 @@ Removes a property. This change is batched and sent to the Shadow World.
5555
component.removeProperty('score');
5656
```
5757

58-
#### `setProperties(map)`
59-
Updates multiple properties at once.
60-
61-
```typescript
62-
component.setProperties({ x: 10, y: 20 });
63-
```
64-
6558
#### `dispatchEvent(type, detail)`
6659
Sends a custom event to the Shadow Object.
6760

packages/shadow-objects/src/elements/ShaeWorkerElement.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ import {ATTR_AUTO_SYNC, ATTR_LOCAL, ATTR_NO_AUTOSTART, ATTR_NO_STRUCTURED_CLONE,
1111
import {ShaeElement} from './ShaeElement.js';
1212

1313
export class ShaeWorkerElement extends ShaeElement {
14-
static override observedAttributes = [...ShaeElement.observedAttributes, ATTR_LOCAL, ATTR_SRC, ATTR_NO_STRUCTURED_CLONE];
14+
static override observedAttributes = [
15+
...ShaeElement.observedAttributes,
16+
ATTR_LOCAL,
17+
ATTR_SRC,
18+
ATTR_NO_STRUCTURED_CLONE,
19+
ATTR_AUTO_SYNC,
20+
];
1521

1622
static DefaultAutoSync = 'frame';
1723

0 commit comments

Comments
 (0)