Author: bargull
Date: 2008-02-21 14:26:37 -0800 (Thu, 21 Feb 2008)
New Revision: 8089

Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/views/LzInputText.lzs
Log:
Change 20080215-bargull-4 by [EMAIL PROTECTED] on 2008-02-15 13:48:49
    in /home/Admin/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: unregister delegates in inputtext

New Features:

Bugs Fixed: LPP-5438 - "inputtext leaks memory"

Technical Reviewer: ptw
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
Added destroy-method to unregister delegates in LzInputText.

Tests:



Modified: openlaszlo/trunk/WEB-INF/lps/lfc/views/LzInputText.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/views/LzInputText.lzs      2008-02-21 
19:44:41 UTC (rev 8088)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/views/LzInputText.lzs      2008-02-21 
22:26:37 UTC (rev 8089)
@@ -83,6 +83,15 @@
   */
 var ontext = LzDeclaredEvent;
 
+/** @access private */
+var _onfocusDel = null;
+
+/** @access private */
+var _onblurDel = null;
+
+/** @access private */
+var _modemanagerDel = null;
+
 /** @access private
   * @modifiers override 
   */
@@ -114,6 +123,28 @@
 }
 
 /**
+  * @access private
+  */
+function destroy (recursiveCall) {
+    if (this._onfocusDel) {
+        this._onfocusDel.unregisterAll();
+        this._onfocusDel = null;
+    }
+    
+    if (this._onblurDel) {
+        this._onblurDel.unregisterAll();
+        this._onblurDel = null;
+    }
+    
+    if (this._modemanagerDel) {
+        this._modemanagerDel.unregisterAll();
+        this._modemanagerDel = null;
+    }
+    
+    super.destroy.apply(this, arguments);
+}
+
+/**
   * Called to create the sprite object.  May be overridden to use a specific 
   * version, e.g. LzTextSprite();
   * @access private


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to