Dynamic re-wiring
var typeahead = $('#search').data('typeahead'); if(typeahead) { var orig_show = typeahead.show; typeahead.show = function() { var result = orig_show.apply(typeahead, arguments); // adjust CSS positioning of this.$menu return result; }; }