From 6cd3c154f46b5a3bcbb60e52e29385944b603c99 Mon Sep 17 00:00:00 2001 From: bjorn Date: Thu, 5 Apr 2018 12:29:44 +0200 Subject: [PATCH] Fix typo in documentation which breaks the callback demo. Fixes #621 --- documentation/demo/callback.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: {