[ADF-3265] Updated index script to remove brief desc links (#3520)

This commit is contained in:
Andy Stark
2018-06-22 21:47:27 +01:00
committed by Eugenio Romano
parent 5a3ce3d299
commit a746a3e3d4
6 changed files with 84 additions and 79 deletions

View File

@@ -75,6 +75,20 @@ var MDNav = /** @class */ (function () {
return h.type === "html" && test(h);
}, index);
};
MDNav.prototype.link = function (test, index) {
if (test === void 0) { test = function () { return true; }; }
if (index === void 0) { index = 0; }
return this.find(function (h) {
return h.type === "link" && test(h);
}, index);
};
MDNav.prototype.links = function (test, index) {
if (test === void 0) { test = function () { return true; }; }
if (index === void 0) { index = 0; }
return this.findAll(function (h) {
return h.type === "link" && test(h);
}, index);
};
MDNav.prototype.list = function (test, index) {
if (test === void 0) { test = function () { return true; }; }
if (index === void 0) { index = 0; }