Author: pyaschenko
Date: 2009-02-09 11:12:08 -0500 (Mon, 09 Feb 2009)
New Revision: 12605
Modified:
trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
Log:
https://jira.jboss.org/jira/browse/RF-6027
Modified:
trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
===================================================================
---
trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2009-02-09
14:57:44 UTC (rev 12604)
+++
trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2009-02-09
16:12:08 UTC (rev 12605)
@@ -201,6 +201,12 @@
},
destroy: function() {
+
+ if( this.shown && this.options.autosized && this.observerSize)
+ {
+ window.clearInterval(this.observerSize);
+ }
+
this._contentElement = null;
this._sizedElement = null;
@@ -793,6 +799,7 @@
if (this.options.autosized) {
window.clearInterval(this.observerSize);
+ this.observerSize = null;
}
if (ModalPanel.activePanels.length > 0) {
@@ -974,6 +981,7 @@
correctShadowSize: function(event) {
this.correctShadowSizeEx();
+ this.observerSize = null;
},
correctShadowSizeEx: function() {