Permalink
Browse files

fixing Issue #53 - html5 `<menu>` import

  • Loading branch information...
1 parent 8786bdc commit 5636e964fa0ee24034dc4217e48c9bc1e06f0d7c @rodneyrehm rodneyrehm committed Jun 7, 2012
Showing with 7 additions and 1 deletion.
  1. +4 −0 README.md
  2. +3 −1 src/jquery.contextMenu.js
View
@@ -103,6 +103,10 @@ $.contextMenu is published under the [MIT license](http://www.opensource.org/lic
## Changelog ##
+### 1.5.18 ###
+
+* fixing html5 `<menu>` import (Issue #53)
+
### 1.5.17 ###
* fixing `options` to default to `options.trigger = "right"`
@@ -1397,7 +1397,7 @@ function menuChildren(items, $children, counter) {
// http://www.whatwg.org/specs/web-apps/current-work/multipage/interactive-elements.html#the-menu-element
case 'menu':
item = {name: $node.attr('label'), items: {}};
- menuChildren(item.items, $node.children(), counter);
+ counter = menuChildren(item.items, $node.children(), counter);
break;
// http://www.whatwg.org/specs/web-apps/current-work/multipage/commands.html#using-the-a-element-to-define-a-command
@@ -1527,6 +1527,8 @@ function menuChildren(items, $children, counter) {
items['key' + counter] = item;
}
});
+
+ return counter;
}
// convert html5 menu

0 comments on commit 5636e96

Please sign in to comment.