[Laszlo-checkins] r8987 - in openlaszlo/trunk/WEB-INF/lps/lfc: kernel/dhtml kernel/swf services

bargull@openlaszlo.org bargull at openlaszlo.org
Sun May 4 01:45:34 PDT 2008


Author: bargull
Date: 2008-05-04 01:45:28 -0700 (Sun, 04 May 2008)
New Revision: 8987

Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzContextMenuKernel.lzs
   openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzInputTextSprite.as
   openlaszlo/trunk/WEB-INF/lps/lfc/services/LzIdle.lzs
   openlaszlo/trunk/WEB-INF/lps/lfc/services/LzKeys.lzs
Log:
Change 20080503-bargull-zRU by bargull at dell--p4--2-53 on 2008-05-03 14:47:55
    in /home/Admin/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Minor updates

New Features:

Bugs Fixed: LPP-5928

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

Documentation:

Release Notes:

Details:
LzInputTextSprite: "findSelection" needs to be on LzInputTextSprite, not on the prototype.
LzKeys: No longer need to refer to LzKeys for event-sending, instead use "this".
LzIdle: update comment, give "regNext" initial value.
LzContextMenuKernel: give "__hide()" ignore-parameter, so we don't get a warning from LzDelegate#register(..).
 


Tests:



Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzContextMenuKernel.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzContextMenuKernel.lzs	2008-05-03 21:51:57 UTC (rev 8986)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzContextMenuKernel.lzs	2008-05-04 08:45:28 UTC (rev 8987)
@@ -116,7 +116,7 @@
 }
 
 /** @access private */
-function __hide() {
+function __hide(ignore) {
     var s = document.getElementById('lzcontextmenu')
     if (! s) return;
     s.style.display = 'none';

Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzInputTextSprite.as
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzInputTextSprite.as	2008-05-03 21:51:57 UTC (rev 8986)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzInputTextSprite.as	2008-05-04 08:45:28 UTC (rev 8987)
@@ -355,7 +355,7 @@
 /**
  * If a mouse event occurs in an input text field, find the focused view
  */
-LzInputTextSprite.prototype.findSelection = function ( ){
+LzInputTextSprite.findSelection = function ( ){
     var ss = Selection.getFocus();
     if ( ss != null ){
         var focusview = eval(ss + '.__lzview');

Modified: openlaszlo/trunk/WEB-INF/lps/lfc/services/LzIdle.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/services/LzIdle.lzs	2008-05-03 21:51:57 UTC (rev 8986)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/services/LzIdle.lzs	2008-05-04 08:45:28 UTC (rev 8987)
@@ -37,12 +37,12 @@
   /** @access private */
   var coi;
   /** @access private */
-  var regNext;
+  var regNext:Boolean = false;
   /** @access private */
   var _events = null;
-
-
-var removeCOI = null;
+  /** @access private */
+  var removeCOI = null;
+  
 function LzIdleClass () {
     // Create array on instance, not prototype
     this.coi = new Array;
@@ -58,7 +58,7 @@
   */
 function callOnIdle ( d ){
     this.coi.push(d);
-    if (!('regNext' in this && this.regNext) ){
+    if (!this.regNext) {
         this.regNext = true;
         this.removeCOI.register( this , "onidle" );
     }
@@ -92,7 +92,6 @@
 
 /**
   * __idleupdate is a callback function from LzIdleKernel.
-  * Treat it as a static function (ie. Don't reference 'this')
   * @access private
   */
 function __idleupdate (t) {

Modified: openlaszlo/trunk/WEB-INF/lps/lfc/services/LzKeys.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/services/LzKeys.lzs	2008-05-03 21:51:57 UTC (rev 8986)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/services/LzKeys.lzs	2008-05-04 08:45:28 UTC (rev 8987)
@@ -183,7 +183,7 @@
 
             // check for IME
             if (this.downKeysHash[229] != true) {
-                if (LzKeys.onkeydown.ready) LzKeys.onkeydown.sendEvent( kC );
+                if (this.onkeydown.ready) this.onkeydown.sendEvent( kC );
             }
         }
 
@@ -232,7 +232,7 @@
         for ( var k in this.downKeysHash ){
             this.downKeysArray.push( k );
         }
-        if (LzKeys.onkeyup.ready) LzKeys.onkeyup.sendEvent( kC );
+        if (this.onkeyup.ready) this.onkeyup.sendEvent( kC );
 
     }
 
@@ -408,7 +408,7 @@
     function enableEnter ( onroff ){
         //Debug.write("enableEnter: "+onroff);
         // SWF-specific
-        Debug.write('LzKeys.enableEnter not yet defined');
+        if ($debug) Debug.write('LzKeys.enableEnter not yet defined');
         // TODO [hqm 2008-01] What is the way to do this in SWF9 ??
         /*   _root.entercontrol.gotoAndStop( onroff ? 1 : 2 );
          */
@@ -428,7 +428,7 @@
     function __mousewheelEvent(d) {
         //Debug.write('__mousewheelEvent', d);
         this.mousewheeldelta = d;
-        if (LzKeys.onmousewheeldelta.ready) LzKeys.onmousewheeldelta.sendEvent(d);
+        if (this.onmousewheeldelta.ready) this.onmousewheeldelta.sendEvent(d);
     }
 
     /**



More information about the Laszlo-checkins mailing list