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

"Uncaught Can't access data until binding complete." #255

Closed
boxgames1 opened this issue Apr 6, 2016 · 2 comments
Closed

"Uncaught Can't access data until binding complete." #255

boxgames1 opened this issue Apr 6, 2016 · 2 comments

Comments

@boxgames1
Copy link

Hi, I have a problem with the ImageMapster in a situation where I have at least 4 maps, the 4th crashes with the following error code in the JS console:

jquery.imagemapster.js:1407 Uncaught Can't access data until binding complete.

As seen in a previous issue I configured the mapster:

onConfigured: function() {
                realOpts = getRealOpts(map_img);
                map_img.mapster('snapshot').mapster('rebind', realOpts, true);
}

In getRealOpts I set the configuration vars and make some business logic, however this is still crashing in the 4th map.

TIA

@boxgames1 boxgames1 changed the title "Can't access data until binding complete." "Uncaught Can't access data until binding complete." Apr 6, 2016
@techfg
Copy link
Collaborator

techfg commented Jan 30, 2021

Hello @boxgames1 -

Thank you for your question, apologies for the delayed reply!

Without more details including visibility to more of your code, its difficult to say what the issue is. As described in #346, there is a current issue with IM where it allows methods to be called on an element even when IM hasn't been initialized yet. In this situation, IM will sometimes return successfully and sometimes encounter the error you describe.

My only guess at this point is that you are calling snapshot and rebind but did not initialize IM yet via (map_img.mapster({...})).

Beyond that, we would need more information to further investigate so if this is still an issue for you, please update this issue per our Bug Reports guidelines and we'd be happy to investigate further.

@boxgames1
Copy link
Author

Lol "delayed". I stopped using this library 4 years ago so will close the issue

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

No branches or pull requests

2 participants