-
Notifications
You must be signed in to change notification settings - Fork 493
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
Remove jQuery dependency #55
Comments
Yes please! |
+1 |
4 similar comments
+1 |
+1 |
+1 |
+1 |
I took a crack at using Zepto instead of jQuery. It works for my project, but I probably missed a few things. My general strategy: eliminate serializing the options into vex DOM object "data-vex" attributes, and instead keep them in a global hash object (optionsHash) since core Zepto does not duplicate $.data exactly (there is a plugin for it, but I wanted to avoid that); each vex DOM object instead just keeps track of its vex id.
|
@ericlenio I believe you're missing the point of this request.
and not:
😄 |
@tborychowski yeah OK I see what you mean. I made a 2nd attempt to do it in ericlenio@6e93c38. Notes about it:
|
There's a new vex2 project which removes the jQuery dependency. Take note though, the project is very new and there are some known bugs and backwards-compatibility issues still to address. |
I wonder why @bbatliner elected to not make that a PR, I think removing jQuery would be great for this project. |
It's more of a rewrite than a one-issue fix.
I'm also suggesting that as long as the module is new that https://github.com/RideAmigosCorp/vex2-safe-dialog The vex dialog plugin claimed to a "drop in replacement" for the standard However, if vex made HTML escaping the /default/, developers are definitely Ten years ago HTML templating engines defaulted to allowing raw HTML Templating engines released in the last few years generally switch to the Related tools like vex would be doing a community service to provide On Fri, Jul 15, 2016 at 2:54 PM, Zack Bloom notifications@github.com
|
The vex2 author did ask for feedback from HubSpot on Twitter, but has https://twitter.com/thebatliner/status/752514232646635520 On Fri, Jul 15, 2016 at 3:44 PM, Mark Stosberg mark@rideamigos.com wrote:
|
For the record, I don’t think I’d have a problem accepting most if not all of those changes in a PR. Breaking changes are not a deal breaker. We would just slap a 3.0 and let people know how to update their method calls. The library has to change with best practices, so we should do whatever continues to keep vex as useful/beneficial to the community as possible. That being said, if the authors of vex2 have plans to take vex in a different direction entirely, feel free. But nothing I’ve heard or seen so far suggests it’s too much of a departure to be merged back in, caveats above. |
Thanks for the reply, @adamschwartz . vex2 author mentioned being busy with work doing the week, so perhaps he can join the conversation this weekend. |
Hi everyone - I'm the maintainer of vex2. My main goals when rewriting vex were:
I agree with @markstos's safe-by-default approach and would certainly want to incorporate his changes into vex2 before looking to merge back to vex. @adamschwartz I also see talk of moving to a modern build tool (Gulp) and using ES6, which I would be happy to include with vex2 since I've already moved away from CoffeeScript. My thought is that we can work together to prepare vex2 to be merged back into vex as a PR, as you suggested. Upgrade guides, API docs, and bugfixes/compatibility issues are what's needed to get to that point. What do you think? |
@bbatliner that all sounds good to me. Thanks so much for working on this. I think the community will benefit greatly from the improvements and changes your talking about. |
Woot! We made it - vex2 has been merged upstream. Thanks for the support everyone. Edit: The latest major version release of vex is currently in beta. Install it with |
Clearly peeps want this, also, cuz
The text was updated successfully, but these errors were encountered: