Author: nbelaevski
Date: 2011-01-27 09:00:38 -0500 (Thu, 27 Jan 2011)
New Revision: 21277
Modified:
trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/togglePanelItem.js
Log:
https://issues.jboss.org/browse/RF-10112
Modified:
trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/togglePanelItem.js
===================================================================
---
trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/togglePanelItem.js 2011-01-27
13:18:22 UTC (rev 21276)
+++
trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/togglePanelItem.js 2011-01-27
14:00:38 UTC (rev 21277)
@@ -127,7 +127,9 @@
// class stuff
destroy: function () {
var parent = this.getTogglePanel();
- delete parent.getItems()[this.index];
+ if (parent) {
+ delete parent.getItems()[this.index];
+ }
$super.destroy.call(this);
}