Roo/bootstrap/Img.js
authorJulian Knowles <julian@roojs.com>
Mon, 20 Jan 2014 10:30:24 +0000 (18:30 +0800)
committerJulian Knowles <julian@roojs.com>
Mon, 20 Jan 2014 10:30:24 +0000 (18:30 +0800)
Roo/bootstrap/Img.js

index 2ebf07f..af75146 100644 (file)
@@ -48,7 +48,9 @@ Roo.extend(Roo.bootstrap.Img, Roo.bootstrap.Component,  {
             cfg.cls += ' img-' + this.border;
         }
         
-        cfg.alt = this.alt || null;
+        if(this.alt){
+            cfg.alt = this.alt;
+        }
         
         return cfg;
     }