-
-
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-twipsy ender support #318
Conversation
right now it's just meant to work with |
@fat I've modified my branch, could you please have a quick look at rvagg/archived-bootstrap@master...endersupport - there's only 3 very minor changes that shouldn't really change anything for anyone else but will help support Ender without the full jQuery beasty. |
sure, i'll take another look - thanks :) |
I've gone ahead and fixed up the others to support Ender sans jQuery and put together an Ender package for it too. A couple of minor things that need fixing and support for Modals is completely broken at the moment, I'll get to that once I need it. I have a new branch for all of this: rvagg/archived-bootstrap@master...ender Including a new README.md, a build script that puts together an Ender file, modified the tests to test it against Ender (not fully passing yet and Modals tests are excluded for now). I've also changed docs/javascript.html to just use Ender. Some of the changes are minor like adding explicit unbinding and swapping out missing methods for others ( I'm not sure if you want to do anything with this at this stage as jQuery is obviously your primary target. There are some minor changes that could be merged just to make support easier but some other changes which wouldn't fit very well (like I'll try and maintain this branch for as long as I need the support but let me know if I can squeeze any of this into the bootstrap master and how I could go about it. |
I think for now we're going to stick with jquery as the main target. That said, when you make it through the rest i'll be using that personally :) Also i'll add it to the wiki! |
Fixes for bootstrap-sass used without Rails
Twipsy doesn't currently work with Ender for the following reasons:
ender.support
isn't defined (as far as I can see anyway, perhaps there is a package that has it?). Seems like something that could go in to bowser though.ender.data()
is only bound to the internal chain so can't be called as$.data(e, k, v)
but as far as I'm aware$(e).data(k, v)
is fine by both Ender and jQuery. Perhapsbonzo.data
should be bound toender
as well asboosh
?ender.remove()
doesn't clean up like jQuery's does which leavestransitionEnd
bound so on subsequentshow()
's you get an immediate fade-out after the fade-in. An explicitunbind()
seems to do the trick.ender.fn
doesn't actually do anything as far as I can tell so it seems appropriate to do anender.ender(ender.fn, true)
at the end of Twipsy to install it properly. Or perhaps justender.ender({twpsy: ender.fn.twipsy, true)
would be safest?This pull request added Ender support and adds a little note about the dependencies. Let me know if you want anything adjusted.