I'm attempting to implement the solution provided here, but apparently is conflicting with jquery as described in this ticket.
So far I dind't find a solution, any ideas?
I want to implement the inheritance mechanism proposed by Shelby Moore
This may be the cause of the problem, extending the Object prototype:
Object.prototype.Inherits = function(parent)
{
if(arguments.length > 1)
{
parent.apply(this, Array.prototype.slice.call(arguments, 1));
}
else
{
parent.call(this);
}
}
EDIT 1: After extensive reading I adopted the following pattern:
NewFunction.prototype = Object.create(new FunctionToInheritFrom());