Skip to content
Permalink
Browse files
Merge pull request #1 from santiaago/master
Onchange preview callback
  • Loading branch information
eee-c committed May 6, 2013
2 parents cd17e54 + bf54368 commit e133dc10a9262c85bc882b431a0fadda95c2d8dc
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/editor.dart
@@ -29,6 +29,7 @@ class Editor {
this._ace.setValue(data, -1);
this._ace.focus();
this.updatePreview();
_ace.getSession().on('change',new js.Callback.many((e,a)=>this.updatePreview()));
}

// worry about waitForAce?
@@ -53,7 +54,7 @@ class Editor {

removePreview() {
while (this._preview_el.children.length > 0) {
this._preview_el.removeChild(this._preview_el.firstChild);
this._preview_el.children.first.remove();
}
}

0 comments on commit e133dc1

Please sign in to comment.