Author: abelevich
Date: 2008-03-24 16:31:43 -0400 (Mon, 24 Mar 2008)
New Revision: 7153
Modified:
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
Log:
add destroy method
Modified:
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
===================================================================
---
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-03-24
20:26:01 UTC (rev 7152)
+++
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-03-24
20:31:43 UTC (rev 7153)
@@ -31,8 +31,14 @@
this.initHandlers();
this.initEvents();
+ this["rich:destructor"] = "destroy";
+
},
+ destroy: function() {
+ this.inplaceInput.component = null;
+ },
+
initHandlers : function() {
this.inplaceInput.observe(this.editEvent,
function(e){this.switchingStatesHandler(e);}.bindAsEventListener(this));
this.inplaceInput.observe("mouseout",
function(e){this.inplaceMouseOutHandler(e);}.bindAsEventListener(this));
Show replies by date