We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When try to recreate menu on same selector, after destroy, causes the following error:
Uncaught TypeError: Cannot read property 'disabled' of undefined
your code:
disabled = ($.isFunction(item.disabled) && item.disabled.call($trigger, key, root)) || item.disabled === true,
On case 'destroy': ... if (o.context !== context) Is always false, and don't destroy anything. Removing this validation, all works.
case 'destroy':
if (o.context !== context)
My "destroy" code: $(".my-context").contextMenu("destroy");
$(".my-context").contextMenu("destroy");
Tested on google chrome (50.0).
The text was updated successfully, but these errors were encountered:
e738733
Refactored the context part to something more sane. Should be fixed in master now.
Sorry, something went wrong.
destroy
No branches or pull requests
When try to recreate menu on same selector, after destroy, causes the following error:
Uncaught TypeError: Cannot read property 'disabled' of undefined
your code:
disabled = ($.isFunction(item.disabled) && item.disabled.call($trigger, key, root)) || item.disabled === true,
On
case 'destroy':
...if (o.context !== context)
Is always false, and don't destroy anything. Removing this validation, all works.My "destroy" code:
$(".my-context").contextMenu("destroy");
Tested on google chrome (50.0).
The text was updated successfully, but these errors were encountered: