Roo/form/TextField.js
authorAlan Knowles <alan@roojs.com>
Tue, 30 Jul 2013 05:04:34 +0000 (13:04 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 30 Jul 2013 05:04:34 +0000 (13:04 +0800)
Roo/form/TextField.js

index 8b1090b..4af5627 100644 (file)
@@ -124,12 +124,10 @@ Roo.extend(Roo.form.TextField, Roo.form.Field,  {
         else if(this.validationEvent !== false){
             this.el.on(this.validationEvent, this.validate, this, {buffer: this.validationDelay});
         }
-        if(this.selectOnFocus || this.emptyText){
+        
+        if(this.selectOnFocus){
             this.on("focus", this.preFocus, this);
-            if(this.emptyText){
-                this.on('blur', this.postBlur, this);
-                 
-            }
+            
         }
         if(this.maskRe || (this.vtype && this.disableKeyFilter !== true && (this.maskRe = Roo.form.VTypes[this.vtype+'Mask']))){
             this.el.on("keypress", this.filterKeys, this);
@@ -185,11 +183,7 @@ Roo.extend(Roo.form.TextField, Roo.form.Field,  {
         }
     },
 
-    // private
-    postBlur : function(){
-       
-    },
-
+    
     // private
     filterKeys : function(e){
         var k = e.getKey();