Couple of todos

This commit is contained in:
Vojta Jina 2011-05-18 13:03:46 +02:00 committed by Igor Minar
parent d62b8407cf
commit 864da8b553

View file

@ -669,6 +669,7 @@ function indent(text, spaceCount) {
//////////////////////////////////////////////////////////
function merge(docs){
// TODO(vojta) refactor to use only byFullId hash map
var byName = {},
byFullId = {};
@ -686,6 +687,7 @@ function merge(docs){
}
// check links
// TODO(vojta) refactor to reuse the loop above
docs.forEach(function(doc) {
doc.links.forEach(function(link) {
if (!byFullId[link]) console.log('WARNING: Non existing link "' + link + '" in ' + doc.section + '/' + doc.id);