fix type on textitem
[roojs1] / Roo / menu / TextItem.js
index 7985228..4bde346 100644 (file)
  * Creates a new TextItem
  * @param {Object} cfg Configuration
  */
-Roo.menu.TextItem = function(text){
-    if (typeof(text) == 'string') {
-        this.text = text;
+Roo.menu.TextItem = function(cfg){
+    if (typeof(cfg) == 'string') {
+        this.text = cfg;
     } else {
-        Roo.apply(this,text);
+        Roo.apply(this,cfg);
     }
     
     Roo.menu.TextItem.superclass.constructor.call(this);
@@ -31,7 +31,7 @@ Roo.menu.TextItem = function(text){
 
 Roo.extend(Roo.menu.TextItem, Roo.menu.BaseItem, {
     /**
-     * @cfg {Boolean} text Text to show on item.
+     * @cfg {String} text Text to show on item.
      */
     text : '',