Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Destroy function? #73

Closed
dsamardjiev opened this issue Aug 15, 2014 · 1 comment · May be fixed by #75
Closed

Destroy function? #73

dsamardjiev opened this issue Aug 15, 2014 · 1 comment · May be fixed by #75

Comments

@dsamardjiev
Copy link

I am trying to disable hover dropdown on mobile at 768 when the browser window is sized down and scaled up, but I am having problems "stopping" the plugin. I am really new to JS and am surprised I got this far! But with another plugin something like this was built in, I am wondering if I missed something?

This is what I have so far.

//dropdown navbar collapse fix
$(function () {
  var $window = $(window),
      $toggle = $('.dropdown-toggle');

  function onResize() {
      if ($window.width() > 768) {
          $toggle.dropdownHover();
      } else {
          //disable here
      }
  }

  $window.resize(onResize);
  // call once on start up
  onResize();
});

If there is a simple way to do this and I am overlooking it?

@CWSpear
Copy link
Collaborator

CWSpear commented Aug 22, 2014

See discussion in #75 and #68

@CWSpear CWSpear closed this as completed Aug 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants