diff --git a/README.md b/README.md index e7e4cade..f94396a8 100644 --- a/README.md +++ b/README.md @@ -109,6 +109,7 @@ $.contextMenu is published under the [MIT license](http://www.opensource.org/lic * adding [DOM Element bound context menus](http://medialize.github.com/jQuery-contextMenu/demo/on-dom-element.html) - ([Issue 88](https://github.com/medialize/jQuery-contextMenu/issues/88)) * fixing key "watch" might translate to Object.prototype.watch in callbacks map - ([Issue 93](https://github.com/medialize/jQuery-contextMenu/issues/93)) * fixing menu and submenu width calculation - ([Issue 18](https://github.com/medialize/jQuery-contextMenu/issues/18)) +* fixing unused variables - ([Issue 100](https://github.com/medialize/jQuery-contextMenu/issues/100)) ### 1.5.25 ### diff --git a/src/jquery.contextMenu.js b/src/jquery.contextMenu.js index 9ca07c67..530c4da1 100755 --- a/src/jquery.contextMenu.js +++ b/src/jquery.contextMenu.js @@ -412,9 +412,7 @@ var // currently active contextMenu trigger e.stopPropagation(); }, key: function(e) { - var opt = $currentTrigger.data('contextMenu') || {}, - $children = opt.$menu.children(), - $round; + var opt = $currentTrigger.data('contextMenu') || {}; switch (e.keyCode) { case 9: