[Laszlo-checkins] r11025 - openlaszlo/trunk/lps/components/base

bargull@openlaszlo.org bargull at openlaszlo.org
Tue Sep 16 09:28:05 PDT 2008


Author: bargull
Date: 2008-09-16 09:28:02 -0700 (Tue, 16 Sep 2008)
New Revision: 11025

Modified:
   openlaszlo/trunk/lps/components/base/basebuttonrepeater.lzx
Log:
Change 20080916-bargull-YVG by bargull at dell--p4--2-53 on 2008-09-16 18:28:02
    in /home/Admin/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: add ignore arg for LzDelegate

New Features:

Bugs Fixed: LPP-6990

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

Documentation:

Release Notes:

Details:
    

Tests:



Modified: openlaszlo/trunk/lps/components/base/basebuttonrepeater.lzx
===================================================================
--- openlaszlo/trunk/lps/components/base/basebuttonrepeater.lzx	2008-09-16 16:27:19 UTC (rev 11024)
+++ openlaszlo/trunk/lps/components/base/basebuttonrepeater.lzx	2008-09-16 16:28:02 UTC (rev 11025)
@@ -5,11 +5,17 @@
         held down. -->
    <class name="basebuttonrepeater" extends="basebutton">
        <!---  @keywords private -->
-       <attribute name="_lasttime" value="0"/>
+       <attribute name="_lasttime" value="0" type="number" />
        <!---  @keywords private -->
-       <attribute name="stillDownDelegate" value="0"/>
+       <attribute name="stillDownDelegate" value="null" type="expression" />
        <!---  @keywords private -->
-       <method name="stillDownEventGenerator">
+       <attribute name="isMouseDown" value="false" type="boolean" />
+       
+       <!--- @keywords public -->
+       <event name="onmousestilldown" />
+       
+       <!---  @keywords private -->
+       <method name="stillDownEventGenerator" args="ignore" >
             var now = (new Date()).getTime();
             var diff = now - this._lasttime;
             this._lasttime = now;
@@ -28,17 +34,17 @@
 
        <!--- @keywords private -->
         <handler name="onmousedown">
-            var now = new Date();
-            this._lasttime = now.getTime();
+            this._lasttime = (new Date()).getTime();
             this.isMouseDown = true;
-            if (!this.stillDownDelegate) {
-               this.stillDownDelegate = new LzDelegate( this, "stillDownEventGenerator");
-           }
+            if (! this.stillDownDelegate) {
+               this.stillDownDelegate = new LzDelegate( this, "stillDownEventGenerator" );
+            }
             lz.Timer.addTimer( this.stillDownDelegate, 500 );
         </handler>
+        
         <!--- @keywords private -->
-        <handler name= "onmouseup">
-            this.isMouseDown=false;
+        <handler name="onmouseup">
+            this.isMouseDown = false;
             lz.Timer.removeTimer( this.stillDownDelegate );
         </handler>
         



More information about the Laszlo-checkins mailing list