-
Notifications
You must be signed in to change notification settings - Fork 280
Not working with jquery 2.0.0 ? #25
Comments
Will check right now |
very strange, works fine for me (Chrome & Firefox), and also the error makes no sense, why would it think "APControl" is undefined....it has nothing to do with jQuery.. |
I am working on a photobox directive for angular js,that's where it gives me the error.I just tested photobox standalone and it works OK,sorry about that! |
I'm glad there are alert people such as yourself. if you see more weird stuff let me know |
Hi there, I had the same issue because I'm loading all my scripts with head.js so the document.ready fires almost immediately, thus, before APControl was defined. Could you move the $(doc).ready(prepareDOM); line at the end of the file? (i moved it just under function close() and it's working fine now) |
Did it, thanks. |
Hi,great extension!
I updated jquery to the new 2.0.0 and it seems photobox complains!
Uncaught TypeError: Cannot read property 'toggle' of undefined photobox.js:69
Line 69 is
autoplayBtn.on('click', APControl.toggle);
Stack on Chrome console
$.fn.photobox.target photobox.js:69
fire jquery-2.0.0.js:2863
self.add jquery-2.0.0.js:2909
jQuery.fn.jQuery.ready jquery-2.0.0.js:242
(anonymous function) photobox.js:65
(anonymous function)
Thanks!
The text was updated successfully, but these errors were encountered: