Navigation Menu

Skip to content

Commit

Permalink
fixing Issue #53 - html5 <menu> import
Browse files Browse the repository at this point in the history
  • Loading branch information
rodneyrehm committed Jun 7, 2012
1 parent 8786bdc commit 5636e96
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -103,6 +103,10 @@ $.contextMenu is published under the [MIT license](http://www.opensource.org/lic


## Changelog ## ## Changelog ##


### 1.5.18 ###

* fixing html5 `<menu>` import (Issue #53)

### 1.5.17 ### ### 1.5.17 ###


* fixing `options` to default to `options.trigger = "right"` * fixing `options` to default to `options.trigger = "right"`
Expand Down
4 changes: 3 additions & 1 deletion src/jquery.contextMenu.js
Expand Up @@ -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 // http://www.whatwg.org/specs/web-apps/current-work/multipage/interactive-elements.html#the-menu-element
case 'menu': case 'menu':
item = {name: $node.attr('label'), items: {}}; item = {name: $node.attr('label'), items: {}};
menuChildren(item.items, $node.children(), counter); counter = menuChildren(item.items, $node.children(), counter);
break; break;


// http://www.whatwg.org/specs/web-apps/current-work/multipage/commands.html#using-the-a-element-to-define-a-command // http://www.whatwg.org/specs/web-apps/current-work/multipage/commands.html#using-the-a-element-to-define-a-command
Expand Down Expand Up @@ -1527,6 +1527,8 @@ function menuChildren(items, $children, counter) {
items['key' + counter] = item; items['key' + counter] = item;
} }
}); });

return counter;
} }


// convert html5 menu // convert html5 menu
Expand Down

0 comments on commit 5636e96

Please sign in to comment.