Knockout.js binding for Bootstrap Typeahead plugin

Here’s a rather hacky script I wrote to bind fields marked up with Bootstrap’s Typeahead plugin (see https://gist.github.com/1866577 for the version I use) to Knockout.js observables. Feedback is very welcome. // Bootstrap.Typeahead binding: presently requires custom version from gist: https://gist.github.com/1866577. // Use like so: data-bind=”typeahead: { target: selectedNamespace, source: namespaces }” ko.bindingHandlers.typeahead = { init:…

13