Skip to content

Commit 1505d2e

Browse files
committed
⚡ custom element
1 parent 7e3add9 commit 1505d2e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

readme.md

100644100755
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ As a dependency injection framework, it is assumed that only one instance of the
3131
construct( options, callback );
3232
```
3333

34+
As a custom element it extends a regular div:
35+
```
36+
<div is="construct-3d"></div>
37+
```
38+
39+
3440
## Options
3541

3642
On initialization you may include the following options...

src/main.js

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
// Fires when an attribute was added, removed, or updated
3232
el.attributeChangedCallback = function(attr, oldVal, newVal) {};
3333

34-
document.registerElement('x-construct', {
34+
document.registerElement('construct-3d', {
3535
prototype: el
3636
});
3737

0 commit comments

Comments
 (0)