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

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