-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
An error in the function set titleSrc #203
Comments
I'm not sure if I understand the issue, please don't use Google Translate if you wish to get help. |
Sorry, I'll try. |
Weird, there shouldn't be any difference, code that gets title is pretty straightforward https://github.com/dimsemenov/Magnific-Popup/blob/master/src/js/image.js#L2 , please link to page with issue or provide isolated example on CodePen. |
Ok. I made an example on CodePen. http://codepen.io/anon/pen/EaLzx |
Thank you. The argument that you pass to popup is already its instance, so you should make it different for each set of images. I've edited your example, see - http://codepen.io/anon/pen/fkcDG |
A non-trivial realization of a simple problem :) Thank you. |
From the function you can refer to the element title links via item.el.attr ('title'), but if I link dynamically loadable, and then apply them to the plugin, when you call the popups an error occurs, as item.el is undefined.
Moreover, if there were links on the page on which the plugin has been activated, and they regularly raised popap, after hanging the plug on the loaded dynamically links, and those links are beginning to produce an error.
The text was updated successfully, but these errors were encountered: