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

index 51ae20d..42f8b33 100644 (file)
@@ -345,12 +345,13 @@ Roo.apply(Roo.form.HtmlEditor.ToolbarContext.prototype,  {
                 });
             }
             
+            
             // update styles
             if (this.styles) { 
                 var st = this.tb.fields.item(0);
-                if (st.store) {
-                    st.store.removeAll();
-                }
+                
+                st.store.removeAll();
+               
                 
                 var cn = sel.className.split(/\s+/);