small fixes

This commit is contained in:
Kevin Jahns 2014-10-06 10:16:06 +02:00
parent 3415d0ee5e
commit 530210ca63
4 changed files with 18 additions and 3 deletions

View File

@ -307,7 +307,6 @@
this.xml.appendChild(n.val(enforce));
} else if (n.type === "TextNodeType") {
text_node = n.val();
text_node._yatta = this;
this.xml.appendChild(text_node);
} else {
throw new Error("Internal structure cannot be transformed to dom");
@ -368,7 +367,7 @@
HB.addOperation(d).execute();
content._yatta = null;
}
this._yatta = this;
content._yatta = this;
TextNodeType.__super__.constructor.call(this, uid, content);
}

File diff suppressed because one or more lines are too long

View File

@ -63,5 +63,13 @@ Connect to other peer.
yatta.val($("#collaborative")[0])
console.log(yatta.getUserId());
$("#collaborative").attr("contenteditable","true");
$("#collaborative")[0].onkeyup = function(){
console.log("dtrn");
console.log("rtdn");
}
$("p")[0].onfocus = function(){
console.log("nrtduiaenrtduiaer");
}
});
```

View File

@ -54,4 +54,12 @@ Y.createPeerJsConnector({key: 'h7nlefbgavh1tt9'}, function(Connector, user_id){
yatta.val($("#collaborative")[0])
console.log(yatta.getUserId());
$("#collaborative").attr("contenteditable","true");
$("#collaborative")[0].onkeyup = function(){
console.log("dtrn");
console.log("rtdn");
}
$("p")[0].onfocus = function(){
console.log("nrtduiaenrtduiaer");
}
});