Search code examples
javascriptprototypejs

PrototypeJS: Is it possible to remove or undo its global modifications?


Is it possible to kill all non-original extensions from prototype, such as array.each, array.map, function.bind, etc?

This question states that there is no version of noConflict, but I'm not looking to reclaim the $. I want to remove everything that prototype did to the host objects.


Solution

  • There is a very easy way to do this: Do not include prototype at all. That's pretty much the only solution.