Ext.override
- Allows you to change or add methods to a class without inheriting from it
var MyClass = function() {
MyClass.superclass.constructor.call(this);
};
Ext.override(MyClass, {
newMethod : function() {},
overriddenMethod : function() {}
};
- MyClass now has a new method and an existing method with new logic
- This is the preferred way to patch existing classes, including core Ext classes