incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmarga...@apache.org
Subject svn commit: r489544 - /incubator/xap/trunk/src/xap/taghandling/AbstractTagImpl.js
Date Fri, 22 Dec 2006 01:57:00 GMT
Author: jmargaris
Date: Thu Dec 21 17:56:59 2006
New Revision: 489544

URL: http://svn.apache.org/viewvc?view=rev&rev=489544
Log:
peer references not being cleaned up correctly

Modified:
    incubator/xap/trunk/src/xap/taghandling/AbstractTagImpl.js

Modified: incubator/xap/trunk/src/xap/taghandling/AbstractTagImpl.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/taghandling/AbstractTagImpl.js?view=diff&rev=489544&r1=489543&r2=489544
==============================================================================
--- incubator/xap/trunk/src/xap/taghandling/AbstractTagImpl.js (original)
+++ incubator/xap/trunk/src/xap/taghandling/AbstractTagImpl.js Thu Dec 21 17:56:59 2006
@@ -157,7 +157,17 @@
  */
 xap.taghandling.AbstractTagImpl.prototype.setPeer = function( obj ){
 	this._peer = obj;
+	
+	//TODO move this into document handler? safer
 	this.getUiContentHandler().setHandlerForPeer( obj, this);
+}
+
+xap.taghandling.AbstractTagImpl.prototype.unload = function(  ){
+	
+	//TODO move this into document handler? safer
+	if (this._peer){
+		this.getUiContentHandler().removeHandlerForPeer( this._peer);
+	}
 }
 
 /**



Mime
View raw message