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

index 96d7432..5b030ec 100644 (file)
@@ -43,7 +43,7 @@ Roo.extend(Roo.bootstrap.Img, Roo.bootstrap.Component,  {
         
         cfg.src = this.src || cfg.src;
         
-        if (['rounded','circle','thumbnail'].indexOf(this.border)) {
+        if (['rounded','circle','thumbnail'].indexOf(this.border)>-1) {
             cfg.cls += ' img-' + this.border;
         }