Roo/form/TextField.js
[roojs1] / Roo / form / TextField.js
index 22189b9..de50897 100644 (file)
@@ -174,7 +174,7 @@ Roo.extend(Roo.form.TextField, Roo.form.Field,  {
     // private - clean the leading white space
     cleanLeadingSpace : function(e)
     {
-        if (this.constructor == Roo.Form.TextField && this.inputType == 'file') {
+        if ( this.inputType == 'file') {
             return;
         }