diff --git a/documentation/demo/callback.md b/documentation/demo/callback.md index f871e453..7f6d2a5e 100644 --- a/documentation/demo/callback.md +++ b/documentation/demo/callback.md @@ -21,7 +21,7 @@ $(function(){ $.contextMenu({ selector: '.context-menu-one', callback: function(itemKey, opt, rootMenu, originalEvent) { - var m = "global: " + key; + var m = "global: " + itemKey; window.console && console.log(m) || alert(m); }, items: {