Skip to content

Commit 15acd45

Browse files
frankpaganFrank Pagan
authored and
Frank Pagan
committed
feat: replaced get-value and set-value with a super charged version of CoCreate-events
1 parent 264c326 commit 15acd45

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ <h2 class="padding:5px_0px">Demo</h2>
115115
</div>
116116

117117
<div id="demo-preview" class="position:relative overflow:auto background-color:white">
118-
<div get-value="#demo" class="padding:20px"></div>
118+
<div class="demopreview" class="padding:20px"></div>
119119
</div>
120120

121121
<div class="font-size:20px position:absolute top:10px right:10px opacity:0.6">

src/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import observer from '@cocreate/observer';
99
import action from '@cocreate/actions';
1010
import {queryDocumentSelectorAll} from '@cocreate/utils';
1111

12+
// ToDo: update to listen to document events, find closest action return
1213
function init() {
1314
let elements = document.querySelectorAll(`[show],[hide]`);
1415
initElements(elements);

0 commit comments

Comments
 (0)