mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-04-22 15:44:45 +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){
|
function merge(docs){
|
||||||
|
// TODO(vojta) refactor to use only byFullId hash map
|
||||||
var byName = {},
|
var byName = {},
|
||||||
byFullId = {};
|
byFullId = {};
|
||||||
|
|
||||||
|
|
@ -686,6 +687,7 @@ function merge(docs){
|
||||||
}
|
}
|
||||||
|
|
||||||
// check links
|
// check links
|
||||||
|
// TODO(vojta) refactor to reuse the loop above
|
||||||
docs.forEach(function(doc) {
|
docs.forEach(function(doc) {
|
||||||
doc.links.forEach(function(link) {
|
doc.links.forEach(function(link) {
|
||||||
if (!byFullId[link]) console.log('WARNING: Non existing link "' + link + '" in ' + doc.section + '/' + doc.id);
|
if (!byFullId[link]) console.log('WARNING: Non existing link "' + link + '" in ' + doc.section + '/' + doc.id);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue