-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Error with jQuery noConflict mode #11
Comments
Silly me. Great find. Thanks so much, Jason. Will update in a moment. |
Hi I have to use
I'm loading velocity 1.2.3 after jQuery 1.11.2 Any ideas? |
You are loading velocity before jQuery, do it in the reverse order and you On Mon, Mar 7, 2016 at 8:43 AM Jan Werkhoven [email protected]
|
We are using that at work with a jsDelivr link (https://cdn.jsdelivr.net/g/[email protected],[email protected]) and then something like this ourGlobal.$ = $.noConflict();
jQuery = $;
( function( $ ){
'use strict';
$( '.js-element' ).velocity( 'fadeIn' );
})( ourGlobal.$ ); Can you show more of your code? |
That's a good trick, that way I don't have to use I replaced all |
The Page-wide options defaults are being set using
$
which breaks in jQuery noConflict mode. I replaced:with
That seems to work find in noConflict mode as far as I can tell.
The text was updated successfully, but these errors were encountered: