More importantly, this method of adding functionality inside a click callback goes against knockout's declarative nature. Instead, you could create a custom binding handler (`ko.bindingHandlers.multiTypeahead = {init: ...}`) that you can then put on the input itself (`<input data-bind="multiTypeahead: recipients"/>`).