resp.
var objectFct, prototypeFct;
for (methodName in obj)
{
if ((typeof obj[methodName] == "function"))
{
if(!obj.constructor.prototype[methodName])
{
objMethodStr = obj[methodName].toString();
obj.constructor.prototype[methodName] = function(text)
{
objMethodStr();
};
}
prototypeFct = obj.constructor.prototype[methodName];
obj[methodName] = function()
{
// ?? oder --> obj.constructor.prototype[methodName] = function() { ... }
prototypeFct();
alert("---> saved!");
};
}
}