Skip to content

Commit

Permalink
Merge branch 'dropdown-missing-handler' of github.com:sime/foundation…
Browse files Browse the repository at this point in the history
… into sime-dropdown-missing-handler
  • Loading branch information
thedeerchild committed Sep 19, 2013
2 parents 6c6c0f0 + 9e88614 commit f4ed72f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/foundation/foundation.dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@

toggle : function (target) {
var dropdown = $('#' + target.data('dropdown'));
if (dropdown.length === 0) {
// No dropdown found, not continuing
return;
}

this.close.call(this, $('[data-dropdown-content]').not(dropdown));

Expand Down

0 comments on commit f4ed72f

Please sign in to comment.