We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cd17e54 + bf54368 commit e133dc1Copy full SHA for e133dc1
lib/editor.dart
@@ -29,6 +29,7 @@ class Editor {
29
this._ace.setValue(data, -1);
30
this._ace.focus();
31
this.updatePreview();
32
+ _ace.getSession().on('change',new js.Callback.many((e,a)=>this.updatePreview()));
33
}
34
35
// worry about waitForAce?
@@ -53,7 +54,7 @@ class Editor {
53
54
55
removePreview() {
56
while (this._preview_el.children.length > 0) {
- this._preview_el.removeChild(this._preview_el.firstChild);
57
+ this._preview_el.children.first.remove();
58
59
60
0 commit comments