-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
noConflict() still not working in 3.0.x #11464
Comments
Something along these lines might do the trick: All I'm doing is defining the plugin function earlier on. That way I can reference it directly and |
tooltip and tab plugins' noConflict features claimed to be broken so far. |
@colllin - nice! but function's are hoisted, so no need to move it up in code like that if you do |
Modal plugin is affected: Line 236 in 6a42305
Scrollspy plugin is affected: Line 154 in 7545da2
Affix plugin is affected: Line 122 in 6a42305
Button plugin is affected: Line 111 in 5d6e921
Collapse plugin is affected: Line 56 in 6a42305
Line 176 in 6a42305
Carousel plugin is affected: Line 201 in 6a42305
Line 213 in 6a42305
These are the obvious ones -- found by searching for So far: |
I was thinking about writing tests for this. It seems like I have to decide between two strategies. The easiest is probably to run all tests in noConflict mode, with some global reference ( Would this be valuable or would you rather that I just spend the time fixing the plugins? |
…internal reference to the jQuery plugin, because in noConflict mode you can never expect to be defined on the jQuery object
@colllin could you open a pull request when you get this in a good spot? thanks! |
Sorry - I did. But I couldn't figure out how to attach it directly to this issue. #11966 |
Closing in favor of your pull request. |
…internal reference to the jQuery plugin, because in noConflict mode you can never expect to be defined on the jQuery object
Fix #11464 - JS noConflict() mode not working in 3.0.x
http://jsfiddle.net/colllin/jZUbB/
Unless I'm using it incorrectly... sorry for the bad news :)
The text was updated successfully, but these errors were encountered: