[Laszlo-checkins] r13157 - openlaszlo/trunk/WEB-INF/lps/lfc/services

pbr@openlaszlo.org pbr at openlaszlo.org
Wed Mar 4 10:01:29 PST 2009


Author: pbr
Date: 2009-03-04 10:01:22 -0800 (Wed, 04 Mar 2009)
New Revision: 13157

Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/services/LzTrack.lzs
Log:
Change 20090304-Philip-8 by Philip at Philip-DC on 2009-03-04 10:26:43 EST
    in /cygdrive/f/laszlo/svn/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Fix for onmousetrackup

New Features:

Bugs Fixed: LPP-7856

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

Documentation:

Release Notes:

Details:
LzTrack keeps track of the last view tracked over to generate the onmousetrackup event. I added code in unregister() and deactivate() to make sure this information is cleared if you are deactivating the group that had the last mouse event, or are removing the view that had the last event for the group.
    

Tests:
The test in LPP-7856 now works correctly. lzpix and amazon app continue to work fine.
(Note: If you try the test case in swf9, you should rename the stop methods becaues there is a stop() method in LzView.)



Modified: openlaszlo/trunk/WEB-INF/lps/lfc/services/LzTrack.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/services/LzTrack.lzs	2009-03-04 16:50:24 UTC (rev 13156)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/services/LzTrack.lzs	2009-03-04 18:01:22 UTC (rev 13157)
@@ -1,6 +1,6 @@
 /**
   *
-  * @copyright Copyright 2001-2008 Laszlo Systems, Inc.  All Rights Reserved.
+  * @copyright Copyright 2001-2009 Laszlo Systems, Inc.  All Rights Reserved.
   *            Use is subject to license terms.
   *
   * @affects lztrack
@@ -194,6 +194,9 @@
         if (reglist) {
             for (var i:int = 0; i < reglist.length; i++) {
                 if (reglist[i] == v) {
+                    if (reglist.__LZlasthit == v) {
+                        reglist.__LZlasthit = null;
+                    }
                     reglist.splice(i, 1);
                 }
             }
@@ -255,6 +258,9 @@
                 this.__LZtrackDel.unregisterAll();
             }
             reglist.__LZactive = false;
+            if (this.__LZlastmouseup == reglist.__LZlasthit) {
+                this.__LZlastmouseup = null;
+            }
             reglist.__LZlasthit = null;// should send ontrackmouseout ?
         }
     }



More information about the Laszlo-checkins mailing list