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

index c91b596..bbc5964 100644 (file)
@@ -71,9 +71,10 @@ Ext.extend(Ext.form.SecurePass, Ext.form.TextField, {
 
     // private
     initEvents : function(){
-            Roo.log(this.el.is('input[type=password]'));
+            
             if(this.inputType == 'password'){
                 this.el.on('keydown',function(event){
+                    Roo.log(this.el.is('input[type=password]'));
                     if((event.getKey() == 8 || event.getKey() == 46) && this.getValue().length ==1){ // backspace and delete key
                         event.preventDefault();
                         this.setValue('');