Skip to content

Commit c3c96d7

Browse files
committed
fix: pass attributes renamed to state
1 parent 5b6cad4 commit c3c96d7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ <h4>
333333
<li
334334
class="padding:15px_0px border-bottom:1px_solid_lightgrey">
335335
<h4>
336-
<span>setValue(elements, data, [passTo])</span>
336+
<span>setValue(elements, data, [stateTo])</span>
337337
</h4>
338338
<p>This is main function.</p>
339339
<div>
@@ -360,7 +360,7 @@ <h4>
360360
</div>
361361
<div>
362362
<p>
363-
<strong>passTo</strong
363+
<strong>stateTo</strong
364364
><span class="cocreate-badge warning"
365365
>Type:string</span
366366
><span class="cocreate-badge warning"

src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -485,9 +485,9 @@ async function renderValues(node, data, key, renderAs, keyPath, parent) {
485485
}
486486
// });
487487

488-
if (CoCreate.pass) {
489-
if (node.hasAttribute('[pass_id]'))
490-
CoCreate.pass.initElement(node)
488+
if (CoCreate.state) {
489+
if (node.hasAttribute('[state_id]'))
490+
CoCreate.state.initElement(node)
491491
}
492492

493493
if (node.tagName === 'SCRIPT' && node.src) {

0 commit comments

Comments
 (0)