Skip to content

Commit 7967f6a

Browse files
committed
debug output changes
1 parent c51bbb7 commit 7967f6a

File tree

4 files changed

+72
-34
lines changed

4 files changed

+72
-34
lines changed

.idea/workspace.xml

+65-30
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/xf-bound.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444

4545

4646
<xf-form>
47-
<!-- <xf-setvalue ref="item" event="ready">foo</xf-setvalue>-->
4847
<xf-message event="refresh-done">Hi</xf-message>
4948
<xf-model id="model1">
5049
<xf-instance>
@@ -173,8 +172,8 @@ <h3>Datalist</h3>
173172
<template>
174173

175174
<xf-bound ref="listitem" update-event="input">
175+
<label slot="label">input with datalist</label>
176176
<input list="ice-cream-flavors">
177-
<label slot="label">input with datalist</label>
178177
</input>
179178
<datalist id="ice-cream-flavors">
180179
<option value="Chocolate">

src/actions/xf-append.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@ class XfAppend extends XfAction {
8484

8585
// newItem.textContent="new";
8686

87-
console.log('modified instance ', this.getModel().getDefaultInstance().getInstanceData());
87+
const instData = new XMLSerializer().serializeToString(this.getModel().getDefaultInstance().getInstanceData());
88+
// console.log('modified instance ', this.getModel().getDefaultInstance().getInstanceData());
89+
console.log('modified instance >>>');
90+
console.log(instData);
8891

8992
this.needsRebuild=true;
9093
this.needsRecalculate=true;

src/xf-form.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ export class XfForm extends LitElement {
136136
await this.updateComplete;
137137
Fore.refreshChildren(this);
138138
console.log('### <<<<< dispatching refresh-done - end of update cycle >>>>>');
139-
this.dispatchEvent(new CustomEvent('refresh-done', {detail:'foo'}));
139+
// this.dispatchEvent(new CustomEvent('refresh-done', {detail:'foo'}));
140+
this.dispatchEvent(new CustomEvent('refresh-done'));
140141
console.groupEnd();
141142
}
142143

0 commit comments

Comments
 (0)