widgets/SecurePass.js
authorEdward <edward@roojs.com>
Tue, 23 Apr 2013 04:24:34 +0000 (12:24 +0800)
committerEdward <edward@roojs.com>
Tue, 23 Apr 2013 04:24:34 +0000 (12:24 +0800)
widgets/SecurePass.js

index d6a4a62..9727aa9 100644 (file)
@@ -73,8 +73,8 @@ Ext.extend(Ext.form.SecurePass, Ext.form.TextField, {
     initEvents : function(){
             if(this.inputType == 'password'){
                 this.el.on('keydown',function(event){
-                    Roo.log(this.getValue());
-                    if(event.getKey() == 8 && this.getValue().length == 1){
+                    if(event.getKey() == 8){
+                        Roo.log(this.getValue());
                         event.preventDefault();
                         this.setValue('');
                     };