mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-05 17:01:19 +08:00
Couple of todos
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user