fix(docs/error): make minerr ids searchable

Closes #3513
This commit is contained in:
Ken Sheedlo 2013-08-08 15:46:33 -07:00 committed by Igor Minar
parent 4f5dfbc362
commit af2cda3687

View file

@ -112,6 +112,10 @@ Doc.prototype = {
this.methods.forEach(function(method) {
extractWords(method.text || method.description || '');
});
if (this.ngdoc === 'error') {
words.push(this.getMinerrNamespace());
words.push(this.getMinerrCode());
}
words.sort();
return words.join(' ');
},