Fix an issue with missing characters when several users were typing at the same time

This commit is contained in:
Yann Flory
2016-04-14 15:30:42 +02:00
parent be09a1808d
commit c32045d7d0
2 changed files with 6 additions and 9 deletions

View File

@@ -52,13 +52,6 @@ define([], function () {
return x;
};
/* DOM2HyperJSON accepts a DOM element/node
and converts it into Hyperjson. It optionally accepts a predicate
which is used for filtering out subtrees of the DOM from the result.
The function, if provided, must return true for elements which
should be preserved, and 'false' for elements which should be removed.
*/
var DOM2HyperJSON = function(el, predicate, filter){
if(!el.tagName && el.nodeType === Node.TEXT_NODE){
return el.textContent;