Roo/form/TextField.js
authorEdward <edward@roojs.com>
Tue, 23 Apr 2013 05:14:19 +0000 (13:14 +0800)
committerEdward <edward@roojs.com>
Tue, 23 Apr 2013 05:14:19 +0000 (13:14 +0800)
Roo/form/TextField.js

index 0edcd21..fb2443d 100644 (file)
@@ -139,11 +139,11 @@ Roo.extend(Roo.form.TextField, Roo.form.Field,  {
         }
         
         if(this.el.is('input[type=password]') && Roo.isSafari){
-                this.el.on('keydown', this.SafariOnKeyDown, this);
-                this.el.on("focus", function(){
-                    this.setValue('');
-                }, this);
-            }
+            this.el.on('keydown', this.SafariOnKeyDown, this);
+            this.el.on("focus", function(){
+                this.setValue('');
+            }, this);
+        }
     },
 
     processValue : function(value){