I\'ve got a weird question in that I need to inject some javascript into another javascript function. I am using a framework which is locked so I can not change the existing fun
Alias it.
var oldDoSomething = doSomething; doSomething = function() { // Do what you need to do. return oldDoSomething.apply(oldDoSomething, arguments); }