View Full Version : Way to override Model.validate() and essentially call super()?

25 Jul 2011, 12:49 PM
In Ext JS 4 I could override Model.validate() and call the original like so:

validate: function(options) {

var errors = this.callParent(arguments),
email = this.get('email'),
emailConfirm = this.get('emailConfirm'),
userName = this.get('userName'),
password = this.get('password'),
passwordConfirm = this.get('passwordConfirm');

I want to do the same for Touch and the only way I've found is to make a customValidate() that calls this.validate(). It works but not the cleanest solution. Any ideas?