-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Bootstrap isn't bulletproof? #3436
Comments
Why are you running both libraries? |
Because MooTools is included in Joomla by default and it's nearly impossible to remove all MooTools libraries and references from the code. jQuery is required by Bootstrap (and a great JS library). If it were up to me MooTools was buried in a deep hole, never to be found again. |
Sorry, we can't offer support on the presence of two conflicting javascript libraries. Seems like more of a mootools issue based on what you've stated. |
I've also the error reported by Thetjo. Just found this issue searching before posting it as new. Extended data: This issue only affects Google Chrome and is related to the hide transition. Conflicts with function Events.Pseudos in mootoos-more file. Hide transition fails and never gets marked as completed. Got it working commenting:
in show function from bootstrap-collapse.js Obviously the transition is still broken but menu collapses as expected. As bootstrap is going to be included in Joomla 3.0 I'll try to fix it. Any help is appreciated. I'm still a mootools man :) |
Seems I've found a way to get it working but as jQuery n00b I'm not going to make a pull request because I'm sure there is a better way to solve it. My n00b solution is to avoid using the event name that creates the conflict with mootools: In bootstrap-collapse.js replace: this.transition('removeClass', $.Event('hide'), 'hidden') with: this.transition('removeClass', $.Event('hideme'), 'hidden') |
Anyone else wondering this, the problem is a pure conflict between mootools-more and jQuery (function($) { |
And it helps. Thanks for sharing Jatitoam |
Problem: When both jQuery and MooTools are loaded, Twitter Bootstrap seems to be running code from the MooTools library.
Demo (minimal): http://www.tweepixels.nl/bootstrap/
I boiled this behavior down to line 3139 of mootools-more.js in their hide() function, which apparently is being run (something a simple alert() right before line 3139 would show).
If this is a 'MooTools issue' instead of a 'Bootstrap issue', please let me know so I can post the issue on their bug tracker.
Regards,
Theo
The text was updated successfully, but these errors were encountered: