Skip to content
New issue

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

Cannot read property 'trigger' of undefined #352

Closed
ghost opened this issue Feb 17, 2016 · 4 comments
Closed

Cannot read property 'trigger' of undefined #352

ghost opened this issue Feb 17, 2016 · 4 comments
Labels

Comments

@ghost
Copy link

ghost commented Feb 17, 2016

Freeciv-web uses jQuery contextMenu v2.1.0 to show the context menu. We use a JavaScript error logging-tool called Track:js, which has reported these JavaScript errors in contextMenu.

Reported 897 times by Track:js:
trackjs-1

Reported 283 times:
trackjs-2

Any help in resolving these?

@ghost
Copy link
Author

ghost commented Feb 17, 2016

This seems related to bug #351.

@bbrala
Copy link
Member

bbrala commented Feb 18, 2016

Thanks for reporting this, i'll try and make time this week to go through this issue.

@bbrala bbrala added the Bug label May 24, 2016
@jasekiw
Copy link

jasekiw commented May 26, 2016

I also have ran into this problem. It seems to only happen when using anonymous callbacks in the same scope. A work around is to set a variable to trigger and then use that instead.

var target = opt.$trigger;

@bbrala
Copy link
Member

bbrala commented May 28, 2016

@jasekiw Do you mean on the items? I've been trying to reproduce this problem, but i can't really at the moment. Do you have a configuration that breaks for me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants