-
Notifications
You must be signed in to change notification settings - Fork 43
jquery-migrate #611
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
jquery-migrate #611
Conversation
…preparation for later upgrade to 3.
…that jqm had been loaded.
…ry.fn.andSelf() replaced by jQuery.fn.addBack()'
For the record:
This is caused by the |
The warning
was caused by this type of code, which was repeated in multiple places:
Note the missing final angle bracket. I'm not sure if this was intentional, or simply a typo that proliferated due to copy & paste. |
Now we only have the following warnings left: WARN: 'JQMIGRATE: jQuery.browser is deprecated' The first one is probably going to be tricky.
The JQMIGRATE: Can't change the 'type' of an input or button in IE 6/7/8 can safely be ignored, in my opinion. Please evaluate whether to merge this now, to provide a baseline for further upgrade to jQuery 3. Either way, I'm planning on building on top of this branch for further migration work. |
I'll leave the tests to fail until I'm done with all the fixes, instead of adding jquery-migrate. |
Really nice progress. |
@pilz good to know, I will keep that in mind. |
…E: jQuery.fn.offset() requires an element connected to a document'
I figured out the issue:
It comes from select2: select2/select2#5173 I have not tried different versions of select2 to see whether it goes away, because the above issue is still open, so I guess there is nothing we can do. FTR, this is where the warning gets triggered: https://github.com/select2/select2/blob/stable/3.5/select2.js#L1386 |
And this concludes the migration. The remaining warnings are all due to external dependencies, i.e. select2 and anythingslider:
I verified this by hacking select2 and anythingslider in node_modules, and by doing so I was able to get a totally clean test run. Next steps:
|
Excellent. Can you try to merge current master in? I think it already works with a modern select2, that might fix it. Perhaps there is also a newer version of anythingslider? https://github.com/patternslib/Patterns/network/dependencies shows 11 vulnerabilities, the next step should be to upgrade them to latest version and check again. |
@pilz where do you see those 11 vulnerabilities? When I go to https://github.com/patternslib/Patterns/network/dependencies, I can't find anything related to vulnerabilities. |
…se testing seems to not work with lazy loading yet
whoa! 🎆 ⚡️ |
nice, eh? I do see some random failures on master now which don't occur locally, and may be timing issues. They are always on pat-scroll but the failing test is also changing randomly. I don't consider that a problem, but annoying. |
Yes, I know the pat-scroll test failures, I see them randomly on local, too.
--
Fulvio
…On Tue, Apr 30, 2019 at 12:24 PM Alexander Pilz ***@***.***> wrote:
nice, eh? I do see some random failures on master now which don't occur
locally, and may be timing issues. They are always on pat-scroll but the
failing test is also changing randomly. I don't consider that a problem,
but annoying.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#611 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADQPRT2JA6IX26E5ZXJDH3PTAM5HANCNFSM4FLQP57A>
.
|
No description provided.