MCPcopy Create free account
hub / github.com/idank/explainshell / Typeahead

Function Typeahead

explainshell/web/static/js/bootstrap.js:1853–1864  ·  view source on GitHub ↗
(element, options)

Source from the content-addressed store, hash-verified

1851 * ================================= */
1852
1853 var Typeahead = function (element, options) {
1854 this.$element = $(element)
1855 this.options = $.extend({}, $.fn.typeahead.defaults, options)
1856 this.matcher = this.options.matcher || this.matcher
1857 this.sorter = this.options.sorter || this.sorter
1858 this.highlighter = this.options.highlighter || this.highlighter
1859 this.updater = this.options.updater || this.updater
1860 this.source = this.options.source
1861 this.$menu = $(this.options.menu)
1862 this.shown = false
1863 this.listen()
1864 }
1865
1866 Typeahead.prototype = {
1867

Callers

nothing calls this directly

Calls 1

$Function · 0.70

Tested by

no test coverage detected