swisnl / jQuery-contextMenu

jQuery contextMenu plugin & polyfill
https://swisnl.github.io/jQuery-contextMenu/
MIT License
2.24k stars 744 forks source link

Callback typo #621

Closed peterbenoit closed 6 years ago

peterbenoit commented 6 years ago

On the callback demo page https://swisnl.github.io/jQuery-contextMenu/demo/callback.html

    callback: function(itemKey, opt, rootMenu, originalEvent) {
        var m = "global: " + key;
        window.console && console.log(m) || alert(m); 
    },

I believe should be

    callback: function(itemKey, opt, rootMenu, originalEvent) {
        var m = "global: " + itemKey;
        window.console && console.log(m) || alert(m); 
    },