Author: nbelaevski
Date: 2010-09-20 05:15:16 -0400 (Mon, 20 Sep 2010)
New Revision: 19262
Modified:
trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/Tab.js
Log:
Fixed duplicate ajax responses generation in tabPanel
Modified: trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/Tab.js
===================================================================
---
trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/Tab.js 2010-09-20
08:56:19 UTC (rev 19261)
+++
trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/Tab.js 2010-09-20
09:15:16 UTC (rev 19262)
@@ -124,7 +124,11 @@
var parent = this.getTogglePanel();
delete parent.getItems()[this.index];
- rf.Event.unbindById(this.id, "."+this.namespace);
+ rf.Event.unbindById(this.id);
+
+ //TODO - optimize
+ rf.Event.unbindById(this.id + ":header:active");
+ rf.Event.unbindById(this.id + ":header:inactive");
this.$super.destroy.call(this);
}