10 ms·
I 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 car
by veemjeem 17y ago
I 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.