projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ecad36
)
Roo/bootstrap/Component.js
author
Alan Knowles
<alan@roojs.com>
Mon, 14 Dec 2015 05:39:14 +0000
(13:39 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 14 Dec 2015 05:39:14 +0000
(13:39 +0800)
Roo/bootstrap/Component.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Component.js
b/Roo/bootstrap/Component.js
index
a37a524
..
8a80b78
100644
(file)
--- a/
Roo/bootstrap/Component.js
+++ b/
Roo/bootstrap/Component.js
@@
-346,14
+346,16
@@
Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent, {
*/
show : function()
{
- this.el.removeClass('hidden');
+ if (this.el) {
+ this.el.removeClass('hidden');
+ }
},
/**
* Hide a component - adds 'hidden' class
*/
hide: function()
{
- if (!this.el.hasClass('hidden')) {
+ if (
this.el &&
!this.el.hasClass('hidden')) {
this.el.addClass('hidden');
}