s/data-arch-value/data-arch-refresh/

This commit is contained in:
Ian Gulliver
2019-07-11 04:44:33 +00:00
parent 7390acb978
commit 15ad72dc0a
6 changed files with 6 additions and 7 deletions

View File

@@ -40,7 +40,7 @@ class Architype {
this.observer_ = new MutationObserver(e => { this.onChange(e); });
this.observer_.observe(this.editorElem_, {
attributes: true,
attributeFilter: ['data-arch-value'],
attributeFilter: ['data-arch-refresh'],
childList: true,
subtree: true,
});

View File

@@ -179,8 +179,7 @@ class Editor extends List {
for (let entry of this.queryEntries('.highlight')) {
entry.getElement().classList.toggle('highlight', false);
}
// TODO: rename this to data-arch-refresh, make value noop everywhere
this.container_.setAttribute('data-arch-value', '');
this.container_.setAttribute('data-arch-refresh', '');
e.stopPropagation();
e.preventDefault();
return;

View File

@@ -71,7 +71,7 @@ class EditorGroup extends EditorEntryBase {
case ' ':
this.elem_.classList.toggle('highlight');
this.elem_.setAttribute('data-arch-value', '');
this.elem_.setAttribute('data-arch-refresh', '');
e.stopPropagation();
e.preventDefault();
break;

View File

@@ -38,7 +38,7 @@ class EditorLabel extends EditorEntryBase {
}
onInput() {
this.input_.setAttribute('data-arch-value', this.input_.value);
this.input_.setAttribute('data-arch-refresh', '');
}
onInputKeyDown(e) {

View File

@@ -73,7 +73,7 @@ class EditorLink extends EditorEntryBase {
case ' ':
this.elem_.classList.toggle('highlight');
this.elem_.setAttribute('data-arch-value', '');
this.elem_.setAttribute('data-arch-refresh', '');
e.stopPropagation();
e.preventDefault();
break;

View File

@@ -57,7 +57,7 @@ class EditorNode extends EditorEntryBase {
}
onInput() {
this.input_.setAttribute('data-arch-value', this.input_.value);
this.input_.setAttribute('data-arch-refresh', '');
}
onInputKeyDown(e) {