diff options
author | matthewsotoudeh <matthewsot@outlook.com> | 2016-01-24 01:05:02 -0800 |
---|---|---|
committer | matthewsotoudeh <matthewsot@outlook.com> | 2016-01-24 01:05:02 -0800 |
commit | 3d9bbd6d6838655ce08db07efa2d2f7c84a54c93 (patch) | |
tree | ec169aee67bc4abd687733cce618dc9b3818132e | |
parent | 7dc8ebf00c132a3f7d2cbcfe125f7af3d560ae31 (diff) |
added outline of ecrit-presentation.js
-rw-r--r-- | ecrit-presentation.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ecrit-presentation.js b/ecrit-presentation.js new file mode 100644 index 0000000..66a2743 --- /dev/null +++ b/ecrit-presentation.js @@ -0,0 +1,16 @@ +ecrit.presentation = {}; +ecrit.presentation.Watcher = function (document) { + document.on("nodeInserted", this.nodeInsertionHandler); + document.on("nodeRemoved", this.nodeRemovalHandler); +}; + +ecrit.presentation.Watcher.prototype.nodeInsertionHander = function (data) { + data.node.on("nodeInserted", this.nodeInsertionHandler); + if (data.node.type === "TestSpan") { + data.node.on("textModified", this.textModifiedHandler); + } +}; + +ecrit.presentation.Watcher.prototype.textModificationHandler = function (data) { + +};
\ No newline at end of file |