Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

Commit

Permalink
Allow multiple selector
Browse files Browse the repository at this point in the history
  • Loading branch information
hotgeart committed Dec 7, 2019
1 parent 87386ed commit 30f55fe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
8 changes: 4 additions & 4 deletions accessible-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

(function($){
$.fn.accessibleMenu = function (options) {
if (this.length) {
this.each(function() {
// Default variable
var el = "#" + this[0].id; // Element
var el = "#" + this.id;

// Defaults settings
var defaults = {
Expand All @@ -32,7 +32,7 @@
});

// Handle keyboard
this.keydown(function (e) {
$(this).keydown(function (e) {
e = e || window.event;
var focused = $(":focus");

Expand Down Expand Up @@ -175,7 +175,7 @@
accessibleMenuToggler(false);
}
});
}
});

// polyfill
if (!String.prototype.repeat) {
Expand Down
2 changes: 1 addition & 1 deletion accessible-menu.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -322,14 +322,6 @@ <h2>Browser support</h2>

<p>All modern browsers and IE >=9.</p>

<h2>Dependencies</h2>

<p>jQuery</p>

<h2>License</h2>

<p>Do what you want with it.</p>

</div>
</div>
</div>
Expand Down

0 comments on commit 30f55fe

Please sign in to comment.