[Laszlo-checkins] r8955 - in openlaszlo/trunk/WEB-INF/lps: lfc/core lfc/events lfc/services lfc/views/platform server/src/org/openlaszlo/compiler
hqm@openlaszlo.org
hqm at openlaszlo.org
Thu May 1 09:41:32 PDT 2008
Author: hqm
Date: 2008-05-01 09:41:28 -0700 (Thu, 01 May 2008)
New Revision: 8955
Modified:
openlaszlo/trunk/WEB-INF/lps/lfc/core/LzMiniNode.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/core/LzNode.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/events/LaszloEvents.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/services/LzIdle.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/services/LzInstantiator.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/services/LzTrack.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/views/platform/LzPlatform.lzs
openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/compiler/NodeModel.java
Log:
Change 20080501-hqm-Z by hqm at badtzmaru.home on 2008-05-01 12:40:33 EDT
in /Users/hqm/openlaszlo/trunk5
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: move sendEvent-specific fields to LzMiniNode
New Features:
Bugs Fixed: LPP-5919
Technical Reviewer: ptw
QA Reviewer: pbr
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
move these two fields to LzMiniNode
var __LZdeleted:Boolean = false;
var __LZdeferDelegates:Boolean = false;
And make any class that needs to receive events inherit from LzMiniNode
Tests:
lztest, lzpix
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/core/LzMiniNode.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/core/LzMiniNode.lzs 2008-05-01 15:59:52 UTC (rev 8954)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/core/LzMiniNode.lzs 2008-05-01 16:41:28 UTC (rev 8955)
@@ -22,10 +22,15 @@
function LzMiniNode ( parent:* = null, attrs:Object? = null, children:Array? = null, instcall:Boolean = false){
}
+
/** @access private */
- var __LZdeleted:Boolean = false;
+var __LZdeleted:Boolean = false;
/** @access private */
+var __LZdeferDelegates:Boolean = false;
+
+
+/** @access private */
function childOf ( node, ignore=null ) { return false;}
/**
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/core/LzNode.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/core/LzNode.lzs 2008-05-01 15:59:52 UTC (rev 8954)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/core/LzNode.lzs 2008-05-01 16:41:28 UTC (rev 8955)
@@ -41,18 +41,24 @@
/** @access private */
static var attributes = new LzInheritedHash();
- var __LZdeferDelegates:Boolean = false;
+ /** @access private */
var __LZisnew:Boolean = false;
+ /** @access private */
var __LZstyleConstraints:* = null;
// var syncNew:Boolean = null;
+ /** @access private */
var __LZdeferredcarr:Array = null;
+ /** @access private */
var _events:Array = null;
var data:* = null;
- var classChildren:Array = null;
+
+ /** @access private */
+ var classChildren:Array = null;
+ /** @access private */
var __LZvizDat:Boolean = true;
+ /** @access private */
var animators:Array = null;
-
if ($swf9) {
///////////////////////////////////////////////////////////////////
// TODO [hqm 2008-01] This won't work for adding methods that
@@ -1485,7 +1491,7 @@
// Whether there are dependencies or not, we need to invoke the
// constraint function (since the dependencies may have 'fired'
// before the constraint was installed).
- this[constraintMethodName]();
+ this[constraintMethodName](null);
}
/** @access private */
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/events/LaszloEvents.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/events/LaszloEvents.lzs 2008-05-01 15:59:52 UTC (rev 8954)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/events/LaszloEvents.lzs 2008-05-01 16:41:28 UTC (rev 8955)
@@ -95,7 +95,7 @@
* @param String eventName: (Optional, but required if eventSender is used) The name
* of the event to register the new delegate for.
*/
-public function LzDelegate (context, methodName, eventSender = null, eventName = null) {
+public function LzDelegate (context:LzMiniNode, methodName, eventSender = null, eventName = null) {
super();
// too expensive to leave on all the time
// if ($debug) {
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/services/LzIdle.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/services/LzIdle.lzs 2008-05-01 15:59:52 UTC (rev 8954)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/services/LzIdle.lzs 2008-05-01 16:41:28 UTC (rev 8955)
@@ -32,14 +32,9 @@
* @devnote This object sends an 'onidle' event when there is no synchronous script
* running after each frame update.
*/
-class LzIdleClass {
+class LzIdleClass extends LzMiniNode {
/** @access private */
- public var __LZdeleted:Boolean = false;
- /** @access private */
- public var __LZdeferDelegates:Boolean = false;
-
- /** @access private */
var coi;
/** @access private */
var regNext;
@@ -93,7 +88,7 @@
*/
var onidle = LzDeclaredEvent;
-function toString () { return "LzIdle" }; // LzIdle in case somebody checks it
+override function toString () { return "LzIdle" }; // LzIdle in case somebody checks it
/**
* __idleupdate is a callback function from LzIdleKernel.
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/services/LzInstantiator.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/services/LzInstantiator.lzs 2008-05-01 15:59:52 UTC (rev 8954)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/services/LzInstantiator.lzs 2008-05-01 16:41:28 UTC (rev 8955)
@@ -17,10 +17,10 @@
* @shortdesc Handles application instantiation.
*/
-dynamic public class LzInstantiatorClass {
+dynamic public class LzInstantiatorService extends LzMiniNode {
var checkQDel = null;
-function LzInstantiatorClass () {
+function LzInstantiatorService () {
this.checkQDel = new LzDelegate( this , "checkQ" );
}
@@ -318,8 +318,8 @@
return (! this.isUpdating);
}
-} // End of LzInstantiatorClass
+} // End of LzInstantiatorService
-var LzInstantiator:LzInstantiatorClass = new LzInstantiatorClass ();
+var LzInstantiator:LzInstantiatorService = new LzInstantiatorService ();
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/services/LzTrack.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/services/LzTrack.lzs 2008-05-01 15:59:52 UTC (rev 8954)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/services/LzTrack.lzs 2008-05-01 16:41:28 UTC (rev 8955)
@@ -100,7 +100,7 @@
* @shortdesc Enables tracking mouse events over a group of views.
*/
-class LzTrackClass {
+class LzTrackClass extends LzMiniNode {
/**
* @event onmousetrackover: sent when the mouse is over a view that is registered to
@@ -127,8 +127,6 @@
var __LZdestroydel:LzDelegate = null;
-var __LZdeferDelegates = false;
-var __LZdeleted = false;
function LzTrackClass (){
super();
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/views/platform/LzPlatform.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/views/platform/LzPlatform.lzs 2008-05-01 15:59:52 UTC (rev 8954)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/views/platform/LzPlatform.lzs 2008-05-01 16:41:28 UTC (rev 8955)
@@ -13,7 +13,7 @@
Platform-specific definitions
*/
-public class LzPlatformClass {
+public class LzPlatformService extends LzMiniNode {
public function initCanvas (canvasobj) {
LzPlatform.buildDefaultMenu(canvasobj);
@@ -70,7 +70,7 @@
}
}
-var LzPlatform:LzPlatformClass = new LzPlatformClass();
+var LzPlatform:LzPlatformService = new LzPlatformService();
Modified: openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/compiler/NodeModel.java
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/compiler/NodeModel.java 2008-05-01 15:59:52 UTC (rev 8954)
+++ openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/compiler/NodeModel.java 2008-05-01 16:41:28 UTC (rev 8955)
@@ -260,7 +260,7 @@
// Binders are called by LzDelegate.execute, which passes the
// value sent by sendEvent, so we have to accept it, but we
// ignore it
- "$lzc$ignore=null",
+ "$lzc$ignore",
pragmas,
"this." + installer + "(" +
ScriptCompiler.quote(name) + "," +
More information about the Laszlo-checkins
mailing list