Delete a function

Delete a function

Hi there,

I am writing some HTML/Javascript which is embedded into a page at load up. The page is predominantly created by the external application and this means that the code it produces can not be altered.

I have been having lots of difficulties getting jQuery to work. Today I realised the problem. The wise people who created the other javascript which is included before I source jQuery adds methods using the prototype function to Object, String and Array. The trouble is that it is not namespaced. In which case the methods they have added to Object appear in the jQuery objects too.

Is there anyway to remove a method once it is added. For example

utilities.js (Used by application) contains:

Object.prototype.addProperty = function (sType, sName, vValue) { blah blah }
String.prototype.times = function(n) { blah blah }

How do I remove the addProperty function from Object? and likewise times() from String.

Please help!!