Roo/form/HtmlEditor/ToolbarContext.js
authorAlan Knowles <alan@roojs.com>
Fri, 13 Apr 2012 07:16:54 +0000 (15:16 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 13 Apr 2012 07:16:54 +0000 (15:16 +0800)
Roo/form/HtmlEditor/ToolbarContext.js

Roo/form/HtmlEditor/ToolbarContext.js

index 42f8b33..cf6ceb2 100644 (file)
@@ -345,9 +345,13 @@ Roo.apply(Roo.form.HtmlEditor.ToolbarContext.prototype,  {
                 });
             }
             
+            var styles = [];
+            for(var i in this.styles) {
+                styles.push(i);
+            }
             
             // update styles
-            if (this.styles) { 
+            if (styles.length) { 
                 var st = this.tb.fields.item(0);
                 
                 st.store.removeAll();