summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatthewsotoudeh <matthewsot@outlook.com>2016-01-24 01:05:02 -0800
committermatthewsotoudeh <matthewsot@outlook.com>2016-01-24 01:05:02 -0800
commit3d9bbd6d6838655ce08db07efa2d2f7c84a54c93 (patch)
treeec169aee67bc4abd687733cce618dc9b3818132e
parent7dc8ebf00c132a3f7d2cbcfe125f7af3d560ae31 (diff)
added outline of ecrit-presentation.js
-rw-r--r--ecrit-presentation.js16
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
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback