Closed GiacomoLaw closed 7 years ago
Seems that the Pokesprite code is just totally wrong, it's attaching the methods to the global window object instead of to its own encapsulated object. One of the minified names just happens to be $
by coincidence, so when jQuery is added to the mix it overrides the $
on window.
I'll go and make some changes, maybe bring the JS into the year 2017 instead of 2011.
By the way...you typoed 'pikipek' as 'pipipek' somewhere in your code. 😄
Okay, thanks!
Do you know when it may come out? 😄
I'll work on it this weekend. You might also be able to try this (untested), I've rewritten the existing code to use $$ as variable instead of $. This is a temporary fix, but it might work.
Thank you very much!
The latest build is totally changed in terms of how it works (it's now a hybrid browser/Node/CommonJS/AMD module), could you give it a try and tell me if it works for you now?
Sure, will do soon! I presume I just update the .js and .css files?
Thanks so much!
Awesome - it's working great! Thanks so much for the fix 😄
Glad that it works now!
Hi all
I'm having issues using Pokesprite with jQuery. When jQuery is enabled, all the mons show up as Bulbasaur. When disabled, it fixes itself and goes back to normal.
I am being affected on this repo: https://github.com/GiacomoLaw/pokefinder
I know that it is jQuery, as disabling it fixes the problem.
Thanks in advance!