2
votes
2answers
153 views

generic chaining technique for overloaded method

A common operation in JavaScript is to replace an object method with a new one while still calling the original method. This is often done like this: var originalMethod = obj.method; obj.method = ...
3
votes
2answers
180 views

For a Javascript library, what is the best or standard way to support extensibility

Specifically, I want to support "plugins" that modify the behavior of parts of the library. I couldn't find much information on the web about this subject. But here are my ideas for how a library ...