3 ms·
I 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
by MadRabbit 17y ago
I 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.