better error handling and reporting

This commit is contained in:
or-else
2017-09-17 18:36:01 -07:00
parent d2a226852b
commit 8f13d2c856
3 changed files with 201 additions and 102 deletions
-4
View File
@@ -521,8 +521,6 @@ Sample JSON representation of the text above:
return a.at - b.at;
});
console.log(spans);
// Denormalize entities into spans. Create a copy of the objects to leave
// original Drafty object unchanged.
spans = spans.map(function(s) {
@@ -536,8 +534,6 @@ Sample JSON representation of the text above:
return {tp: tp, data: data, at: s.at, len: s.len};
});
console.log(spans);
return forEach(txt, 0, txt.length, spans, formatter, context);
},