projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
623c758
)
Roo/menu/TextItem.js
author
Alan Knowles
<alan@akbkhome.com>
Thu, 29 Jul 2010 09:45:16 +0000
(17:45 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 29 Jul 2010 09:45:16 +0000
(17:45 +0800)
Roo/menu/TextItem.js
patch
|
blob
|
history
diff --git
a/Roo/menu/TextItem.js
b/Roo/menu/TextItem.js
index
7985228
..
5ab2d18
100644
(file)
--- a/
Roo/menu/TextItem.js
+++ b/
Roo/menu/TextItem.js
@@
-19,11
+19,11
@@
* 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);