3 ms·
You're saying right things about jQuery, but you seem like don't know a thing about RightJS, because it has its own nice features and most people who actually t
by MadRabbit 17y ago
You're saying right things about jQuery, but you seem like don't know a thing about RightJS, because it has its own nice features and most people who actually tried it for real, said that it is more comfortable and fun to work with than jQuery.
As for the safe mode, first of all it's not such a big problem as people usually think and actually provides more help than issues, and secondly RightJS will end up with a safe mode plugin sooner or later.
- veemjeem 17y agoI do think you should consider adding a safe mode sooner rather than later. It's actually a bigger problem than you might think. My mentor generally won't care too much if I use a 3rd party js library as long as it doesn't interfere with other company libraries (which do put functions on Array.prototype/Object.prototype). I'm guessing that other people working at large companies may not be able to use your library for this reason.
- MadRabbit 17y agoI know about the problem. RightJS is extra careful with native classes extensions, it adds only standard methods and doesn't extend the Object.prototype at all. In many cases it's just adds missing methods in old browsers and that's it. And we always keep the original functionality intact. We're trying to balance between the Prototype extensions hell and jQuery agnosticism. Things like String#endsWith, Array#compact is kinda standard features, they are extremely handy in everyday work and most of soberminded programmers won't hack those methods if they create some plugin that other people might use. As the matter of fact most of jQuery plugins don't extend prototype too. So it is a problem, but I believe it's negotiable and there might be a non-polar solution.