mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
Couple of todos
This commit is contained in:
parent
d62b8407cf
commit
864da8b553
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue