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

BUG: reinitialization ContextMenu after redraw map #51

Closed
ollazarev opened this issue Aug 17, 2016 · 3 comments
Closed

BUG: reinitialization ContextMenu after redraw map #51

ollazarev opened this issue Aug 17, 2016 · 3 comments
Labels

Comments

@ollazarev
Copy link

257, 266 lines in ol3-contextmenu-debug.js:

257: var topics = {};
...
266: var index = topics[topic].push(listener) -1;

Variable 'topics' is not redefined, when ContextMenu is reinitialized. So item's callbacks are accumulated and called multiply, when the user reinitialize ContextMenu after redrawing the map.

@jonataswalker
Copy link
Owner

@ollazarev Are you able to provide a fiddle to reproduce this bug?

@ollazarev
Copy link
Author

ollazarev commented Aug 17, 2016

@jonataswalker
Copy link
Owner

Fixed with #53 - @ollazarev thanks for reporting.

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