Roo/bootstrap/ButtonGroup.js
authorAlan Knowles <alan@roojs.com>
Wed, 15 Jan 2014 11:57:52 +0000 (19:57 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 15 Jan 2014 11:57:52 +0000 (19:57 +0800)
Roo/bootstrap/ButtonGroup.js

index 30a475a..ae49463 100644 (file)
@@ -53,7 +53,7 @@ Roo.extend(Roo.bootstrap.ButtonGroup, Roo.bootstrap.Component,  {
             cfg.cls += ' btn-group-' + this.size;
         }
         
-        if (['up'].indexOf(this.direction)) {
+        if (['up'].indexOf(this.direction) > -1) {
             cfg.cls += ' dropup';
         }