Permalink
Browse files

fixing separators to not be clickable - Issue #85

  • Loading branch information...
1 parent 2d6c9d6 commit 0b6c31a2ce8a7398731b9d03eeb4af184b3c2873 @rodneyrehm rodneyrehm committed Dec 29, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −0 README.md
  2. +1 −1 src/jquery.contextMenu.js
View
@@ -114,6 +114,7 @@ $.contextMenu is published under the [MIT license](http://www.opensource.org/lic
* adding class `context-menu-active` to define state on active trigger element - ([Issue 92](https://github.com/medialize/jQuery-contextMenu/issues/92))
* adding [demo for TouchSwipe](http://medialize.github.com/jQuery-contextMenu/demo/trigger-swipe.html) activation
* fixing iOS "click" compatibility problem - ([Issue 83](https://github.com/medialize/jQuery-contextMenu/issues/83))
+* fixing separators to not be clickable - ([Issue 85](https://github.com/medialize/jQuery-contextMenu/issues/85))
### 1.5.25 ###
@@ -713,7 +713,7 @@ var // currently active contextMenu trigger
callback;
// abort if the key is unknown or disabled or is a menu
- if (!opt.items[key] || $this.hasClass('disabled') || $this.hasClass('context-menu-submenu')) {
+ if (!opt.items[key] || $this.is('.disabled, .context-menu-submenu, .context-menu-separator, .not-selectable')) {
return;
}

0 comments on commit 0b6c31a

Please sign in to comment.