Skip to content

Commit 4dd60af

Browse files
committed
Show callbacks in the search results
1 parent adfbfbb commit 4dd60af

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

site/js/docurium.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,16 @@ $(function() {
484484
}
485485
})
486486

487+
// look for callbacks
488+
_.each(data.callbacks, function(f, name) {
489+
if (name.search(value) > -1) {
490+
var gl = functionLink('callback', name, version)
491+
var url = '#' + gl
492+
searchResults.push({url: url, name: name, match: 'callback', navigate: gl})
493+
return
494+
}
495+
})
496+
487497
this.reset(searchResults)
488498
},
489499
})

0 commit comments

Comments
 (0)