yup; the examples page shows pretty well. I have a "no-hover-intent" class
on by default which makes the dropdown show up on ":hover", in case the
component fails to load. When it's loaded, I remove the class.


On Mon, Jun 10, 2013 at 3:27 PM, Dan Crews <notifications@github.com> wrote:

> In index.js:
>
> > -	var menu = jQuery('.dropdown-menu', el);
> > -	var remove_class = config? config['remove-class'] || null : null;
> > -	var jel = jQuery(el).addClass('dropdown'
> ).addClass('hoverIntent');
> > -	if (remove_class){
> > -		jel.removeClass(remove_class);
> > -	}
> > -	jel.hoverIntent(function() {
> > -		menu.show();
> > -	}, function() {
> > -		menu.hide();
> > -	});
> > +module.exports = function (el, config) {
> > +  var menu = query('.dropdown-menu', el)
> > +    , remove_class = config? config['remove-class'] || null : null
> > +    , clist = classes(el).add('dropdown').add('hoverIntent');
> > +  if (remove_class){
>
> Can you talk to the point of the remove_class?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/fs-components/dropdown-hoverintent/pull/2/files#r4622102>
> .
>