This piece of code works fine in ext30, but the translation ext40 not working properly.
It does not work (in ext40) the validation of the field.

It has changed the way it should be handled validateValue?

Somebody can put here the proper way to handle this situation?
thanks

Ext 30
Code:
Wki.TextField = Ext.extend(Ext.form.TextField, {
    initComponent:function() {
         Ext.apply(this, {
        }); 
        Wki.TextField.superclass.initComponent.call(this); 
    }, 
    validateValue : function(value){
        if (this.allowBlank == false && value.trim() == "") {
            this.markInvalid();
            return false;
        }
        return (Wki.TextField.superclass.validateValue.call(this, value));
    }
});
Ext40
Code:
Ext.define('Wki.TextField', {
    extend: 'Ext.form.Text',
    alias: 'widget.wkitextfield',    
    constructor: function(config) {    
        config = config || {};    
        Ext.apply(this, { 
        });
        Wki.TextField.superclass.constructor.apply(this, arguments);
    },
    validateValue : function(value){
        if (this.allowBlank == false && value.trim() == "") {
            this.markInvalid();
            return false;
        }
        return (Wki.TextField.superclass.validateValue.call(this, value));
    }   
});