Autocompleter e Stradivari namespace

As it's an optional feature though, I would not force it as a dependency, but rather state its requirement in the README and throw an exception from the Javascript if te feature is used and .typeahead() is not available.

WDYT?

> On 01 Dec 2014, at 19:13, Lleïr Borràs Metje <notifications@github.com> wrote:
> 
> In app/assets/javascripts/stradivari/autocompleter.js:
> 
> > +* - checkbox :foo, collection: Foo.foos, priority: :low, title: "Foo", autocomplete: true
> > +*
> > +**/
> > +
> > +
> > +
> > +Stradivari.Autocompleter = function() {
> > +  var autoCompleteField = $('input[data-stradivari="autocomplete"]')
> > +  var bloodhounds = prepareTheBloodhounds($('label[data-stradivari="autocomplete"]'));
> > +  var datasets = prepareTheDatasets();
> > +
> > +  initializeTheBloodhounds(false);
> > +  autoCompleteField.typeahead({highlight: true}, datasets);
> > +  attachSelectEvent();
> > +
> > +  function prepareTheBloodhounds(labels) {
> As typeahead is now a dependency you should include it in the gemset and in the asset pipeline
> 
> —
> Reply to this email directly or view it on GitHub.
>