Author: pbr
Date: 2007-09-27 16:14:14 -0700 (Thu, 27 Sep 2007)
New Revision: 6655

Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/services/LzModeManager.lzs
Log:
Change 20070926-Philip-0 by [EMAIL PROTECTED] on 2007-09-26 13:49:59 EDT
     in /cygdrive/f/laszlo/svn/src/svn/openlaszlo/trunk
     for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Fix reference to hasNoDelegates in LzModeManager

New Features:

Bugs Fixed: LPP-4389, LPP-2564

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

Documentation:

Release Notes:

Details:
This bug is already fixed because hasNoDelegates has been removed. 
However, it is still referenced in LzModeManager.lzs. I changed the reference 
to getDelegateCount() as recommended in LPP-4389.

Tests:
This test continues to work properly. Double clicking will produce a debug 
message.

<canvas height="500" debug="true" >
   <view width="40" height="40" bgcolor="0xEAEAEA" clickable="true" >
     <handler name="oninit" >
       var del = new LzDelegate( this, "handleDblClick", this, "ondblclick" );
       del.unregisterFrom( this.ondblclick );
       del.register( this, "ondblclick" );
     </handler>

     <method name="handleDblClick" >
       Debug.write( "handleDblClick" );
     </method>
   </view>
</canvas>


Files:
M      WEB-INF/lps/lfc/services/LzModeManager.lzs

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20070926-Philip-0.tar


Modified: openlaszlo/trunk/WEB-INF/lps/lfc/services/LzModeManager.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/services/LzModeManager.lzs 2007-09-27 
23:06:22 UTC (rev 6654)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/services/LzModeManager.lzs 2007-09-27 
23:14:14 UTC (rev 6655)
@@ -155,7 +155,7 @@
         if ( eventStr == "onclick" ){
             if ( this.__LZlastclick == view  &&
                ('ondblclick' in view && view.ondblclick) && 
-               !view.ondblclick.hasNoDelegates &&
+               (view.ondblclick.getDelegateCount() > 0) &&
                 (getTimer() - this.__LZlastClickTime)< view.DOUBLE_CLICK_TIME 
){
                     //this is a double-click
                     eventStr = "ondblclick";


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

Reply via email to