Author: ptw
Date: 2007-11-05 11:52:33 -0800 (Mon, 05 Nov 2007)
New Revision: 7131
Modified:
openlaszlo/trunk/WEB-INF/lps/lfc/compiler/Class.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/compiler/LzFormatter.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/controllers/LzAnimatorGroup.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/core/LzDefs.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/core/LzNode.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/core/UserClass.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataElement.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataNode.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataRequest.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataText.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDatapath.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDatapointer.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataset.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/data/LzReplicationManager.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/helpers/LzCommand.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/helpers/LzState.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzContextMenu.js
openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzLibrary.js
openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzContextMenu.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzLoader.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzMediaLoader.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/services/LzFocus.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/services/LzGlobalMouse.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/services/LzIdle.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/services/LzModeManager.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/services/platform/dhtml/LzHistory.js
openlaszlo/trunk/WEB-INF/lps/lfc/services/platform/dhtml/LzKeys.js
openlaszlo/trunk/WEB-INF/lps/lfc/services/platform/swf/LzHistory.as
openlaszlo/trunk/WEB-INF/lps/lfc/services/platform/swf/LzKeys.as
openlaszlo/trunk/WEB-INF/lps/lfc/views/LaszloCanvas.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/views/LaszloView.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/views/LzInputText.lzs
openlaszlo/trunk/WEB-INF/lps/lfc/views/LzText.lzs
openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/sc/CommonGenerator.java
openlaszlo/trunk/test/lztest/lztest-class-impl.lzx
Log:
Change 20071102-ptw-t by [EMAIL PROTECTED] on 2007-11-02 22:24:07 EDT
in /Users/ptw/OpenLaszlo/ringding-2
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Uses 'plists' rather than Object's to pass instance attributes
to Class.make
Bugs Fixed:
LPP-4997 'DHTML: text.format() doesn't work unless debugging enabled.'
Technical Reviewer: [EMAIL PROTECTED] (pending)
QA Reviewer: [EMAIL PROTECTED] (Message-Id: <[EMAIL PROTECTED]>)
Details:
Using Object's as hashes is fraught with danger because our
favorite browser has quirks in how it enumerates the properties of
an object; hence replace all uses of Object/hash in the Class
framework with a 'plist' (i.e., a property list, i.e., an array of
alternating key/value entries).
lztest-class-impl, UserClass: Use new protocol.
LzLoader, LzMediaLoader, LzContextMenuItem, LzLibrary,
LzContextMenu, LzKeys, LzHistory, LzGlobalMouse, LzFocus, LzNode,
LzInputText, LzText, LaszloView, LaszloCanvas, LzCommand, LzState,
LzAnimatorGroup, LzReplicationManager, LzDatapointer, LzDataText,
LzDataNode, LzDataRequest, LzDataElement, LzDataset, LzDatapath,
Replace all calls to DeclareEvent with instance var declaration
with LzDeclaredEvent initial value. (We want this anyways so we
don't have to munge class prototypes at runtime, but it is needed
in this change because Mixin's no longer store their instance
properties on a psuedo-prototype object.)
LzDefs: remove DeclareEvent(s).
LzFormatter: Make the bootstrap LzMessage class more like the real
class. Fix some type-ohs.
Class, CommonGenerator: replace hashes with plists.
Class: remove obsolete 'make' and passThrough's.
Tests:
Test case from bug passes (in IE6)
smokecheck, lztest
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/compiler/Class.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/compiler/Class.lzs 2007-11-05 14:22:06 UTC
(rev 7130)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/compiler/Class.lzs 2007-11-05 19:52:33 UTC
(rev 7131)
@@ -273,8 +273,8 @@
// are classname:String (required); traitsAndSuperclass:(Null ||
// Class || Array) if Null defaults to Instance, if Array, the
// elements of the array are the traits followed by the superclass;
- // instanceProperties:Object is a hash of initial instance properties;
- // staticProperties:Object is a hash of the inital class properties;
+ // instanceProperties:Array is a 'plist' of initial instance properties;
+ // staticProperties:Array is a 'plist' of the inital class properties;
make: function make (classname, traitsAndSuperclass, instanceProperties,
staticProperties) {
// The constructor notes itself in every instance
var nc = function constructor () {
@@ -323,8 +323,6 @@
}
}
if (! superclass) { superclass = Instance; }
- // Default factory
- nc.addStaticProperty('make', superclass.make);
// The prototype is an instance of our super, which causes us to
// inherit our super's instanceProperties
{
@@ -332,7 +330,6 @@
// class instance initializer
var xtor = function prototype () { this.constructor = superclass; };
xtor.prototype = superclass.prototype;
- #pragma "passThrough=true"
var prototype = new xtor(); // --- superclass.make();
}
// Create any trait interstitials, following the pattern above
@@ -343,8 +340,12 @@
}
}
// Install the staticProperties
- for (var name in staticProperties) {
- nc.addStaticProperty(name, staticProperties[name]);
+ if (staticProperties) {
+ while (staticProperties.length > 0) {
+ var value = staticProperties.pop();
+ var name = staticProperties.pop();
+ nc.addStaticProperty(name, value);
+ }
}
// Create super link
nc.prototype = prototype;
@@ -355,8 +356,12 @@
prototype._dbg_typename = classname
}
// Class.initialize: Install initial values
- for (var p in instanceProperties) {
- nc.addProperty(p, instanceProperties[p]);
+ if (instanceProperties) {
+ while (instanceProperties.length > 0) {
+ var value = instanceProperties.pop();
+ var name = instanceProperties.pop();
+ nc.addProperty(name, value);
+ }
}
// Run class initializers from least to most specific
(function classInit (prototype, constructor) {
@@ -389,8 +394,11 @@
_dbg_name: 'Trait',
// Adds a property to the Trait, and to all implementations
addProperty: function addProperty (name, value) {
+ // Add to prototype
+ this.prototype[name] = value;
// Save for future implementations
- this.prototype[name] = value;
+ this.instanceProperties.push(name);
+ this.instanceProperties.push(value);
// Add it to existing implementations
var impls = this.implementations;
for (var mash in impls) {
@@ -430,15 +438,18 @@
}
}
// Add the properties to the prototype (superclassInstance)
- var prototype = this.prototype;
- for (var name in prototype) {
+ var ip = this.instanceProperties;
+ var ipl = ip.length;
+ for (var i = 0; i < ipl; i += 2) {
// if ($debug) {
// if (name in superclassInstance) {
// Debug.debug("%s.%s overrides %s.%s", this.classname, name,
// superclassInstance.constructor.classname, name);
// }
// }
- superclassInstance.addProperty.call(superclassInstance, name,
prototype[name]);
+ var name = ip[i];
+ var value = ip[i+1];
+ superclassInstance.addProperty.call(superclassInstance, name, value);
}
// Make the interstitial
var xtor = function interstitial () { this.constructor = arguments.callee;
};
@@ -471,6 +482,7 @@
_dbg_typename: this._dbg_name,
_dbg_name: classname,
prototype: superTrait ? superTrait.make() : new Object,
+ instanceProperties: superTrait ? superTrait.instanceProperties.slice(0)
: new Array,
// Remembers all implementations of the Trait
implementations: {}
};
@@ -478,12 +490,20 @@
nt.addStaticProperty('addProperty', this.addProperty);
nt.addStaticProperty('makeInterstitial', this.makeInterstitial);
// Install the staticProperties
- for (var p in staticProperties) {
- nt.addStaticProperty(p, staticProperties[p]);
+ if (staticProperties) {
+ while (staticProperties.length > 0) {
+ var value = staticProperties.pop();
+ var name = staticProperties.pop();
+ nt.addStaticProperty(name, value);
+ }
}
// Trait.initialize: install initial values
- for (var p in instanceProperties) {
- nt.addProperty(p, instanceProperties[p]);
+ if (instanceProperties) {
+ while (instanceProperties.length > 0) {
+ var value = instanceProperties.pop();
+ var name = instanceProperties.pop();
+ nt.addProperty(name, value);
+ }
}
// Run the initializer if there is one
if (nt.hasOwnProperty('initialize')) {
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/compiler/LzFormatter.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/compiler/LzFormatter.lzs 2007-11-05
14:22:06 UTC (rev 7130)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/compiler/LzFormatter.lzs 2007-11-05
19:52:33 UTC (rev 7131)
@@ -19,13 +19,17 @@
*/
class LzMessage {
var message = '';
+ var length = 0;
- static function initialize (message) {
- this.message = message;
+ function initialize (message) {
+ if (arguments.length > 0) {
+ this.appendInternal('' + message, message);
+ }
}
function appendInternal (str, obj) {
this.message += str;
+ this.length = this.message.length;
}
function append (str) {
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/controllers/LzAnimatorGroup.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/controllers/LzAnimatorGroup.lzs
2007-11-05 14:22:06 UTC (rev 7130)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/controllers/LzAnimatorGroup.lzs
2007-11-05 19:52:33 UTC (rev 7131)
@@ -184,28 +184,28 @@
*/
var isactive = false;
-DeclareEvent(prototype, 'ontarget' );
-DeclareEvent(prototype, 'onduration' );
-DeclareEvent(prototype, 'onstarted' );
+var ontarget = LzDeclaredEvent;
+var onduration = LzDeclaredEvent;
+var onstarted = LzDeclaredEvent;
/** Executed when the animator starts. This code is executed
* multiple times if the animator repeats.
*/
-DeclareEvent(prototype, 'onstart' );
-DeclareEvent(prototype, 'onpaused' );
+var onstart = LzDeclaredEvent;
+var onpaused = LzDeclaredEvent;
/** Use of 'onfinish' event
* is deprecated. Use 'onstop' event instead.
* @keywords deprecated
*/
-DeclareEvent(prototype, 'onfinish' );
+var onfinish = LzDeclaredEvent;
/** Executed when the animator finishes.
*/
-DeclareEvent(prototype, 'onstop' );
+var onstop = LzDeclaredEvent;
/** Event sent at the beginning of each new repeat. */
-DeclareEvent(prototype, 'onrepeat' );
+var onrepeat = LzDeclaredEvent;
var animatorProps = { attribute : true, from : true ,
duration : true , to : true ,
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/core/LzDefs.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/core/LzDefs.lzs 2007-11-05 14:22:06 UTC
(rev 7130)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/core/LzDefs.lzs 2007-11-05 19:52:33 UTC
(rev 7131)
@@ -47,25 +47,6 @@
LzDeclaredEvent.ready = false;
/**
- * @access private
- */
-function DeclareEvent( who , what ){
- // Debug.debug('declare ' + who + ' what ' + what);
- who[ what ] = LzDeclaredEvent;
-}
-
-/**
- * @access private
- */
-function DeclareEvents( who , what ){
- // Debug.debug('DeclareEvents', who, what);
- for (var i in what) {
- //Debug.info('what', what[i]);
- who[what[i]] = LzDeclaredEvent;
- }
-}
-
-/**
* Used to efficiently clone hashtables using Object's
* N.B. these tables incorrectly will appear to have entries for all
* the properties of Object.prototype. To avoid this (but pay the
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/core/LzNode.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/core/LzNode.lzs 2007-11-05 14:22:06 UTC
(rev 7130)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/core/LzNode.lzs 2007-11-05 19:52:33 UTC
(rev 7131)
@@ -262,22 +262,22 @@
/** This event is sent right before a node becomes active --
* e.g. before a view displays, or before a layout affects its subviews.
*/
-DeclareEvent(prototype, 'oninit' );
+var oninit = LzDeclaredEvent;
/** This is the first event a node sends, right
* at the end of the instantiation process, but before any subnodes
* have been created or references resolved
*/
-DeclareEvent(prototype, 'onconstruct' );
+var onconstruct = LzDeclaredEvent;
/** The ondata script is executed when the data selected by a view's datapath
* changes.
*/
-DeclareEvent(prototype, 'ondata' );
+var ondata = LzDeclaredEvent;
/** If replicated, the index of this clone */
var clonenumber = null;
-DeclareEvent(prototype, 'onclonenumber' );
-DeclareEvent(prototype, 'ondestroy' );
+var onclonenumber = LzDeclaredEvent;
+var ondestroy = LzDeclaredEvent;
/** @access private */
var __LZlateinit = null;
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/core/UserClass.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/core/UserClass.lzs 2007-11-05 14:22:06 UTC
(rev 7130)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/core/UserClass.lzs 2007-11-05 19:52:33 UTC
(rev 7131)
@@ -117,7 +117,7 @@
traitList ? traitList : sup,
null,
// LzNode.initialize installs the tagname in ConstructorMap
- {tagname: classname}
+ ['tagname', classname]
);
// For backward compatibility, we also install the class as a
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataElement.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataElement.lzs 2007-11-05
14:22:06 UTC (rev 7130)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataElement.lzs 2007-11-05
19:52:33 UTC (rev 7131)
@@ -32,12 +32,12 @@
}
}
-DeclareEvent(prototype, 'onDocumentChange' );
-DeclareEvent(prototype, 'onparentNode' );
-DeclareEvent(prototype, 'onchildNode' );
-DeclareEvent(prototype, 'onchildNodes' );
-DeclareEvent(prototype, 'onattributes' );
-DeclareEvent(prototype, 'onnodeName' );
+var onDocumentChange = LzDeclaredEvent;
+var onparentNode = LzDeclaredEvent;
+var onchildNode = LzDeclaredEvent;
+var onchildNodes = LzDeclaredEvent;
+var onattributes = LzDeclaredEvent;
+var onnodeName = LzDeclaredEvent;
/** @access private */
var __LZo = -1;
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataNode.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataNode.lzs 2007-11-05
14:22:06 UTC (rev 7130)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataNode.lzs 2007-11-05
19:52:33 UTC (rev 7131)
@@ -66,7 +66,7 @@
*/
trait LzDataNode {
-DeclareEvent(prototype, 'onownerDocument' );
+var onownerDocument = LzDeclaredEvent;
/** The type of this node -- ELEMENT_NODE or TEXT_NODE
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataRequest.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataRequest.lzs 2007-11-05
14:22:06 UTC (rev 7130)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataRequest.lzs 2007-11-05
19:52:33 UTC (rev 7131)
@@ -43,7 +43,7 @@
// Used by dataprovider to record error messages
var error = null;
- DeclareEvent(prototype, 'onstatus' );
+ var onstatus = LzDeclaredEvent;
function initialize (requestor) {
super.initialize.apply(this, arguments);
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataText.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataText.lzs 2007-11-05
14:22:06 UTC (rev 7130)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataText.lzs 2007-11-05
19:52:33 UTC (rev 7131)
@@ -27,12 +27,12 @@
}
-DeclareEvent(LzDataText.prototype, 'onDocumentChange' );
-DeclareEvent(LzDataText.prototype, 'onparentNode' );
-DeclareEvent(LzDataText.prototype, 'onchildNode' );
-DeclareEvent(LzDataText.prototype, 'onchildNodes' );
-DeclareEvent(LzDataText.prototype, 'onattributes' );
-DeclareEvent(LzDataText.prototype, 'onnodeName' );
+var onDocumentChange = LzDeclaredEvent;
+var onparentNode = LzDeclaredEvent;
+var onchildNode = LzDeclaredEvent;
+var onchildNodes = LzDeclaredEvent;
+var onattributes = LzDeclaredEvent;
+var onnodeName = LzDeclaredEvent;
/** This property is of type String, can raise a DOMException object on setting
* and can raise a DOMException object on retrieval. */
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDatapath.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDatapath.lzs 2007-11-05
14:22:06 UTC (rev 7130)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDatapath.lzs 2007-11-05
19:52:33 UTC (rev 7131)
@@ -93,14 +93,14 @@
/** Sent when the datapath's data changes.
*/
-/* DeclareEvent(prototype, 'ondata'); */
+/* var ondata = LzDeclaredEvent; */
/** Sent when the datapath's data results in an error.
*/
-/* DeclareEvent(prototype, 'onerror'); */
+/* var onerror = LzDeclaredEvent; */
/** Sent when the datapath's data encounters a
* timeout.
*/
-/* DeclareEvent(prototype, 'ontimeout'); */
+/* var ontimeout = LzDeclaredEvent; */
/** This attribute applies to datapaths
* which match multiple nodes and force replication. See the
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDatapointer.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDatapointer.lzs 2007-11-05
14:22:06 UTC (rev 7130)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDatapointer.lzs 2007-11-05
19:52:33 UTC (rev 7131)
@@ -125,8 +125,8 @@
var rerunxpath = false;
setters.rerunxpath = "__LZsetRerunXPath";
-DeclareEvent(prototype, 'onp' );
-DeclareEvent(prototype, 'onDocumentChange' );
+var onp = LzDeclaredEvent;
+var onDocumentChange = LzDeclaredEvent;
/** Sent when the data selected by this datapointer's
<attribute>xpath</attribute>
* changes. For XPaths which select a datanode, this means that the
* datapointer is pointing to a new node. For XPaths which select text data,
@@ -135,16 +135,16 @@
* a data node will not receive <event>ondata</event> when the node, say,
changes one of
* its attributes.
*/
-DeclareEvent(prototype, 'ondata' );
+var ondata = LzDeclaredEvent;
/** Sent when the dataset that the datapointer
* is pointing to generates an error.
*/
-DeclareEvent(prototype, 'onerror' );
+var onerror = LzDeclaredEvent;
/** Sent when a request by the dataset that
* the datapointer is pointing to times out.
*/
-DeclareEvent(prototype, 'ontimeout' );
-DeclareEvent(prototype, 'onrerunxpath' );
+var ontimeout = LzDeclaredEvent;
+var onrerunxpath = LzDeclaredEvent;
//to set datapointer to datasource:dataset
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataset.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataset.lzs 2007-11-05 14:22:06 UTC
(rev 7130)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/data/LzDataset.lzs 2007-11-05 19:52:33 UTC
(rev 7131)
@@ -103,11 +103,11 @@
var dataRequestClass = LzHTTPDataRequest;
var dsloadDel = null;
-DeclareEvent(prototype, 'ondata' );
+var ondata = LzDeclaredEvent;
/** Sent when the dataset's request results in an error. */
-DeclareEvent(prototype, 'onerror' );
+var onerror = LzDeclaredEvent;
/** Sent when the request made by the dataset times out. */
-DeclareEvent(prototype, 'ontimeout' );
+var ontimeout = LzDeclaredEvent;
var timeout = 60000;
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/data/LzReplicationManager.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/data/LzReplicationManager.lzs
2007-11-05 14:22:06 UTC (rev 7130)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/data/LzReplicationManager.lzs
2007-11-05 19:52:33 UTC (rev 7131)
@@ -111,9 +111,9 @@
/** @access private */
var __LZdataoffset = 0;
-DeclareEvent(prototype, 'onnodes' );
-DeclareEvent(prototype, 'onclones' );
-DeclareEvent(prototype, 'onvisible' );
+var onnodes = LzDeclaredEvent;
+var onclones = LzDeclaredEvent;
+var onvisible = LzDeclaredEvent;
/**
* @access private
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/helpers/LzCommand.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/helpers/LzCommand.lzs 2007-11-05
14:22:06 UTC (rev 7130)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/helpers/LzCommand.lzs 2007-11-05
19:52:33 UTC (rev 7131)
@@ -56,7 +56,7 @@
* If the command is active, this event is sent
* when the keys array are pressed simultaneously.
*/
-DeclareEvent(prototype, 'onselect' );
+var onselect = LzDeclaredEvent;
/**
* This registers the given key array so that the command is executed when the
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/helpers/LzState.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/helpers/LzState.lzs 2007-11-05
14:22:06 UTC (rev 7130)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/helpers/LzState.lzs 2007-11-05
19:52:33 UTC (rev 7131)
@@ -80,9 +80,9 @@
static var tagname = 'state';
/** Sent when the state is applied. */
-DeclareEvent(prototype, 'onapply' );
+var onapply = LzDeclaredEvent;
/** Sent when the state is removed */
-DeclareEvent(prototype, 'onremove' );
+var onremove = LzDeclaredEvent;
/** <code>setAttribute('apply', true)</code> will
* apply the state. <code>setAttribute('apply', false)</code> will
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzContextMenu.js
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzContextMenu.js
2007-11-05 14:22:06 UTC (rev 7130)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzContextMenu.js
2007-11-05 19:52:33 UTC (rev 7131)
@@ -26,7 +26,7 @@
this.setDelegate(del);
}
-DeclareEvent(prototype, 'onmenuopen' );
+var onmenuopen = LzDeclaredEvent;
var showbuiltins = false;
@@ -170,7 +170,7 @@
this.setDelegate(del);
}; // End of LzContextMenuItem
-DeclareEvent(prototype, 'onselect' );
+var onselect = LzDeclaredEvent;
/**
* LzContextMenuItem.setDelegate
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzLibrary.js
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzLibrary.js 2007-11-05
14:22:06 UTC (rev 7130)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzLibrary.js 2007-11-05
19:52:33 UTC (rev 7131)
@@ -51,7 +51,7 @@
var loaded = false;
var loading = false;
-DeclareEvent(prototype, 'onload');
+var onload = LzDeclaredEvent;
function toString (){
return "Library " + this.href + " named " + this.name;
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzContextMenu.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzContextMenu.lzs
2007-11-05 14:22:06 UTC (rev 7130)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzContextMenu.lzs
2007-11-05 19:52:33 UTC (rev 7131)
@@ -27,8 +27,8 @@
this.setDelegate(del);
}
-DeclareEvent(prototype, 'onmenuopen' );
-DeclareEvent(prototype, 'onselect' );
+var onmenuopen = LzDeclaredEvent;
+var onselect = LzDeclaredEvent;
/**
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzLoader.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzLoader.lzs 2007-11-05
14:22:06 UTC (rev 7130)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzLoader.lzs 2007-11-05
19:52:33 UTC (rev 7131)
@@ -75,10 +75,10 @@
}
-DeclareEvent(prototype, 'onerror' );
-DeclareEvent(prototype, 'ondata' );
-DeclareEvent(prototype, 'onrequest' );
-DeclareEvent(prototype, 'ontimeout' );
+var onerror = LzDeclaredEvent;
+var ondata = LzDeclaredEvent;
+var onrequest = LzDeclaredEvent;
+var ontimeout = LzDeclaredEvent;
var requestheaders = {};
var timeout = 30000;
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzMediaLoader.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzMediaLoader.lzs
2007-11-05 14:22:06 UTC (rev 7130)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzMediaLoader.lzs
2007-11-05 19:52:33 UTC (rev 7131)
@@ -38,8 +38,8 @@
}
}
-DeclareEvent(prototype, 'onstreamstart' );
-DeclareEvent(prototype, 'onloaddone' );
+var onstreamstart = LzDeclaredEvent;
+var onloaddone = LzDeclaredEvent;
var LOADERDEPTH = 9;
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/services/LzFocus.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/services/LzFocus.lzs 2007-11-05
14:22:06 UTC (rev 7130)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/services/LzFocus.lzs 2007-11-05
19:52:33 UTC (rev 7131)
@@ -24,7 +24,7 @@
/** Sent when the focus changes, with the argument being the view
* that was just focused. If nothing is focussed, this event is sent with
null.
*/
-DeclareEvent(LzFocus, 'onfocus' );
+LzFocus.onfocus = LzDeclaredEvent;
/** A reference to the last view that held the focus
* @type LzView
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/services/LzGlobalMouse.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/services/LzGlobalMouse.lzs 2007-11-05
14:22:06 UTC (rev 7130)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/services/LzGlobalMouse.lzs 2007-11-05
19:52:33 UTC (rev 7131)
@@ -74,9 +74,9 @@
*/
var LzGlobalMouse = new Object;
-DeclareEvent(LzGlobalMouse, 'onmousemove' );
-DeclareEvent(LzGlobalMouse, 'onmouseup' );
-DeclareEvent(LzGlobalMouse, 'onmousedown' );
+LzGlobalMouse.onmousemove = LzDeclaredEvent;
+LzGlobalMouse.onmouseup = LzDeclaredEvent;
+LzGlobalMouse.onmousedown = LzDeclaredEvent;
LzGlobalMouse.__movecounter = 0;
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/services/LzIdle.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/services/LzIdle.lzs 2007-11-05
14:22:06 UTC (rev 7130)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/services/LzIdle.lzs 2007-11-05
19:52:33 UTC (rev 7131)
@@ -76,7 +76,7 @@
}
/** This is the idle event for the system, sent by this service */
-DeclareEvent( prototype, 'onidle' );
+var onidle = LzDeclaredEvent;
function toString () { return "LzIdle" }; // LzIdle in case somebody checks it
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/services/LzModeManager.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/services/LzModeManager.lzs 2007-11-05
14:22:06 UTC (rev 7130)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/services/LzModeManager.lzs 2007-11-05
19:52:33 UTC (rev 7131)
@@ -50,7 +50,7 @@
var LzModeManager = new Object();
/** Sent when the mode changes. */
-DeclareEvent(LzModeManager, 'onmode' );
+LzModeManager.onmode = LzDeclaredEvent;
/** @access private */
LzModeManager.__LZlastclick = null;
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/services/platform/dhtml/LzHistory.js
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/services/platform/dhtml/LzHistory.js
2007-11-05 14:22:06 UTC (rev 7130)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/services/platform/dhtml/LzHistory.js
2007-11-05 19:52:33 UTC (rev 7131)
@@ -54,7 +54,7 @@
/** @access private */
LzHistory.__lzcurrstate = {};
-DeclareEvent(LzHistory, 'onoffset' );
+LzHistory.onoffset = LzDeclaredEvent;
/**
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/services/platform/dhtml/LzKeys.js
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/services/platform/dhtml/LzKeys.js
2007-11-05 14:22:06 UTC (rev 7130)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/services/platform/dhtml/LzKeys.js
2007-11-05 19:52:33 UTC (rev 7131)
@@ -17,9 +17,9 @@
*/
var LzKeys = {};
LzKeys.downKeysHash = {};
-DeclareEvent(LzKeys, 'onkeydown' );
-DeclareEvent(LzKeys, 'onkeyup' );
-DeclareEvent(LzKeys, 'onmousewheeldelta' );
+LzKeys.onkeydown = LzDeclaredEvent;
+LzKeys.onkeyup = LzDeclaredEvent;
+LzKeys.onmousewheeldelta = LzDeclaredEvent;
/**
* @field Number mousewheeldelta: the amount the mouse wheel last moved. Use
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/services/platform/swf/LzHistory.as
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/services/platform/swf/LzHistory.as
2007-11-05 14:22:06 UTC (rev 7130)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/services/platform/swf/LzHistory.as
2007-11-05 19:52:33 UTC (rev 7131)
@@ -58,7 +58,7 @@
/** @access private */
LzHistory.__lzcurrstate = {};
-DeclareEvent(LzHistory, 'onoffset' );
+LzHistory.onoffset = LzDeclaredEvent;
/**
* @access private
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/services/platform/swf/LzKeys.as
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/services/platform/swf/LzKeys.as
2007-11-05 14:22:06 UTC (rev 7130)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/services/platform/swf/LzKeys.as
2007-11-05 19:52:33 UTC (rev 7131)
@@ -54,13 +54,13 @@
* event sent when a key is pressed; sent with keycode
* for key that was pressed.
*/
-DeclareEvent(LzKeys, 'onkeydown' );
+LzKeys.onkeydown = LzDeclaredEvent;
/**
* event sent whenever a key goes up; sent with keycode
* for key that was let go.
*/
-DeclareEvent(LzKeys, 'onkeyup' );
-DeclareEvent(LzKeys, 'onmousewheeldelta' );
+LzKeys.onkeyup = LzDeclaredEvent;
+LzKeys.onmousewheeldelta = LzDeclaredEvent;
LzKeyboardKernel.setCallback(LzKeys, '__keyEvent');
/** @access private */
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/views/LaszloCanvas.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/views/LaszloCanvas.lzs 2007-11-05
14:22:06 UTC (rev 7130)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/views/LaszloCanvas.lzs 2007-11-05
19:52:33 UTC (rev 7131)
@@ -244,13 +244,13 @@
var initdelay = 0;
/** Sent whenever the number of created nodes changes */
-DeclareEvent(prototype, 'onpercentcreated');
+var onpercentcreated = LzDeclaredEvent;
/** Sent whenever the mouse button goes down*/
-DeclareEvent(prototype, 'onmousedown');
+var onmousedown = LzDeclaredEvent;
/** Sent whenever the mouse button goes up*/
-DeclareEvent(prototype, 'onmouseup');
+var onmouseup = LzDeclaredEvent;
/** Sent whenever the mouse moves */
-DeclareEvent(prototype, 'onmousemove');
+var onmousemove = LzDeclaredEvent;
/** version number of the LPS that generated this application (for .lzo files,
* this is the version number of the server that generated the optimized
file, not the one
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/views/LaszloView.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/views/LaszloView.lzs 2007-11-05
14:22:06 UTC (rev 7130)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/views/LaszloView.lzs 2007-11-05
19:52:33 UTC (rev 7131)
@@ -77,32 +77,32 @@
static var tagname = 'view';
/** Event called when this view adds a subview */
-DeclareEvent(prototype, 'onaddsubview' );
-DeclareEvent(prototype, 'onbgcolor' );
+var onaddsubview = LzDeclaredEvent;
+var onbgcolor = LzDeclaredEvent;
/** The onblur script is executed when an element loses focus either
* by the pointing device or by tabbing navigation.
*/
-DeclareEvent(prototype, 'onblur' );
+var onblur = LzDeclaredEvent;
/** The onclick script is executed when the pointing device button is
* clicked over an element.
*/
-DeclareEvent(prototype, 'onclick' );
-DeclareEvent(prototype, 'onclickable' );
+var onclick = LzDeclaredEvent;
+var onclickable = LzDeclaredEvent;
/** The onfocus script is executed when an element receives focus
* either by the pointing device or by tabbing navigation.
*/
-DeclareEvent(prototype, 'onfocus'); // From LzFocus
-DeclareEvent(prototype, 'onframe');
+var onfocus = LzDeclaredEvent; // From LzFocus
+var onframe = LzDeclaredEvent;
/** Event for changes to view's <attribute>height</attribute> property */
-DeclareEvent(prototype, 'onheight' );
-DeclareEvent(prototype, 'onimload' );
+var onheight = LzDeclaredEvent;
+var onimload = LzDeclaredEvent;
/** The onkeyup script is executed when this view has the focus and a
* key is released. This event is sent with the keycode for the key that
* went up.
*/
-DeclareEvent(prototype, 'onkeyup' ); // From LzFocus
+var onkeyup = LzDeclaredEvent; // From LzFocus
/** The onkeydown script is executed when this view has the focus and
* a key is pressed down. Multiple key down events are sent for a
@@ -110,71 +110,71 @@
* once, use onkeyup. This event is sent with the keycode for the key that is
* down.
*/
-DeclareEvent(prototype, 'onkeydown' ); // From LzFocus
-DeclareEvent(prototype, 'onlastframe' );
-DeclareEvent(prototype, 'onload' );
-DeclareEvent(prototype, 'onloadperc' );
+var onkeydown = LzDeclaredEvent; // From LzFocus
+var onlastframe = LzDeclaredEvent;
+var onload = LzDeclaredEvent;
+var onloadperc = LzDeclaredEvent;
/** <event>onerror</event>: Sent when there is an error loading the view's
resource.
* The argument sent with the event is the error string sent by the server.
*/
-DeclareEvent(prototype, 'onerror' );
+var onerror = LzDeclaredEvent;
/**
* <event>ontimeout</event>: Sent when the request to load media for the view
times
* out
*/
-DeclareEvent(prototype, 'ontimeout' );
+var ontimeout = LzDeclaredEvent;
/** The onmousedown script is executed when the pointing device button is
* pressed over an element.
*/
-DeclareEvent(prototype, 'onmousedown' );
+var onmousedown = LzDeclaredEvent;
/** The onmouseout script is executed when the point device is moved
* so that is is no longer over an element.
*/
-DeclareEvent(prototype, 'onmouseout' );
+var onmouseout = LzDeclaredEvent;
/** The onmouseover script is executed when the pointing device is
* moved onto an element.
*/
-DeclareEvent(prototype, 'onmouseover' );
-DeclareEvent(prototype, 'onmousetrackover');
-DeclareEvent(prototype, 'onmousetrackup');
+var onmouseover = LzDeclaredEvent;
+var onmousetrackover = LzDeclaredEvent;
+var onmousetrackup = LzDeclaredEvent;
/** The onmouseup script is executed when the pointing device button is
* released over an element.
*/
-DeclareEvent(prototype, 'onmouseup' );
+var onmouseup = LzDeclaredEvent;
/** Sent when a view changes its opacity */
-DeclareEvent(prototype, 'onopacity' );
+var onopacity = LzDeclaredEvent;
-DeclareEvent(prototype, 'onplay' );
+var onplay = LzDeclaredEvent;
/** Event called when this view removes a subview */
-DeclareEvent(prototype, 'onremovesubview' );
+var onremovesubview = LzDeclaredEvent;
-DeclareEvent(prototype, 'onresource' );
-DeclareEvent(prototype, 'onresourceheight');
-DeclareEvent(prototype, 'onresourcewidth');
-DeclareEvent(prototype, 'onrotation' );
-DeclareEvent(prototype, 'onstop' );
-DeclareEvent(prototype, 'ontotalframes' );
-DeclareEvent(prototype, 'onunstretchedheight' );
-DeclareEvent(prototype, 'onunstretchedwidth' );
-DeclareEvent(prototype, 'onvisible' );
+var onresource = LzDeclaredEvent;
+var onresourceheight = LzDeclaredEvent;
+var onresourcewidth = LzDeclaredEvent;
+var onrotation = LzDeclaredEvent;
+var onstop = LzDeclaredEvent;
+var ontotalframes = LzDeclaredEvent;
+var onunstretchedheight = LzDeclaredEvent;
+var onunstretchedwidth = LzDeclaredEvent;
+var onvisible = LzDeclaredEvent;
/** @access private */
-DeclareEvent(prototype, 'onvisibility' );
+var onvisibility = LzDeclaredEvent;
/** event for changes to view's <attribute>width</attribute> property */
-DeclareEvent(prototype, 'onwidth' );
+var onwidth = LzDeclaredEvent;
/** event for changes to view's <attribute>x</attribute> property */
-DeclareEvent(prototype, 'onx' );
-DeclareEvent(prototype, 'onxoffset' );
+var onx = LzDeclaredEvent;
+var onxoffset = LzDeclaredEvent;
/** event for changes to view's <attribute>y</attribute> property */
-DeclareEvent(prototype, 'ony' );
-DeclareEvent(prototype, 'onyoffset' );
+var ony = LzDeclaredEvent;
+var onyoffset = LzDeclaredEvent;
/**
* The ondblclick script is executed when the pointing device button
@@ -187,7 +187,7 @@
* The view's doubleclick time can be adjusted by setting its
* DOUBLE_CLICK_TIME attribute
*/
-DeclareEvent(prototype, 'ondblclick' );
+var ondblclick = LzDeclaredEvent;
var DOUBLE_CLICK_TIME = 500;
var capabilities = LzSprite.prototype.capabilities;
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/views/LzInputText.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/views/LzInputText.lzs 2007-11-05
14:22:06 UTC (rev 7130)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/views/LzInputText.lzs 2007-11-05
19:52:33 UTC (rev 7131)
@@ -73,11 +73,11 @@
class LzInputText extends LzText {
-DeclareEvent(prototype, 'onenabled');
-DeclareEvent(prototype, 'onselect');
+var onenabled = LzDeclaredEvent;
+var onselect = LzDeclaredEvent;
/** whenever the text in the field changes. */
-DeclareEvent(prototype, 'ontext');
+var ontext = LzDeclaredEvent;
/** @access private
* @modifiers override
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/views/LzText.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/views/LzText.lzs 2007-11-05 14:22:06 UTC
(rev 7130)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/views/LzText.lzs 2007-11-05 19:52:33 UTC
(rev 7131)
@@ -79,13 +79,13 @@
static var tagname = 'text';
/** Sent whenever the text in the field changes. */
-DeclareEvent(prototype, 'ontext');
-DeclareEvent(prototype, 'onmaxlength');
-DeclareEvent(prototype, 'onpattern');
-DeclareEvent(prototype, 'onscroll');
-DeclareEvent(prototype, 'onmaxscroll');
-DeclareEvent(prototype, 'onhscroll');
-DeclareEvent(prototype, 'onmaxhscroll');
+var ontext = LzDeclaredEvent;
+var onmaxlength = LzDeclaredEvent;
+var onpattern = LzDeclaredEvent;
+var onscroll = LzDeclaredEvent;
+var onmaxscroll = LzDeclaredEvent;
+var onhscroll = LzDeclaredEvent;
+var onmaxhscroll = LzDeclaredEvent;
/**
* @access private
@@ -667,7 +667,7 @@
*/
function setText ( t, force ){
// force to a string
- t += '';
+ t = '' + t;
if (force != true && t == this.text) return;
if (this.visible) this.sprite.setVisible(this.visible);
if (this.maxlength != null && t.length > this.maxlength){
Modified:
openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/sc/CommonGenerator.java
===================================================================
---
openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/sc/CommonGenerator.java
2007-11-05 14:22:06 UTC (rev 7130)
+++
openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/sc/CommonGenerator.java
2007-11-05 19:52:33 UTC (rev 7131)
@@ -342,14 +342,14 @@
if (props.isEmpty()) {
instanceProperties = new ASTLiteral(null);
} else {
- instanceProperties = new ASTObjectLiteral(0);
+ instanceProperties = new ASTArrayLiteral(0);
instanceProperties.setChildren((SimpleNode[])(props.toArray(new
SimpleNode[0])));
}
SimpleNode classProperties;
if (classProps.isEmpty()) {
classProperties = new ASTLiteral(null);
} else {
- classProperties = new ASTObjectLiteral(0);
+ classProperties = new ASTArrayLiteral(0);
classProperties.setChildren((SimpleNode[])(classProps.toArray(new
SimpleNode[0])));
}
@@ -399,7 +399,7 @@
if (n instanceof ASTFunctionDeclaration) {
SimpleNode[] c = n.getChildren();
assert c.length == 3;
- p.add(c[0]);
+ p.add(new ASTLiteral(((ASTIdentifier)c[0]).getName()));
SimpleNode funexpr = new ASTFunctionExpression(0);
funexpr.setBeginLocation(n.filename, n.beginLine, n.beginColumn);
funexpr.setChildren(c);
@@ -409,7 +409,7 @@
for (int j = 0, len = c.length; j < len; j++) {
SimpleNode v = c[j];
assert v instanceof ASTVariableDeclaration : v.getClass();
- p.add(v.get(0));
+ p.add(new ASTLiteral(((ASTIdentifier)v.get(0)).getName()));
if (v.getChildren().length > 1) {
p.add(v.get(1));
} else {
Modified: openlaszlo/trunk/test/lztest/lztest-class-impl.lzx
===================================================================
--- openlaszlo/trunk/test/lztest/lztest-class-impl.lzx 2007-11-05 14:22:06 UTC
(rev 7130)
+++ openlaszlo/trunk/test/lztest/lztest-class-impl.lzx 2007-11-05 19:52:33 UTC
(rev 7131)
@@ -50,7 +50,7 @@
suiteSubclasses.testSub = function() {
var LzSub = Class.make( "LzSub", null,
- {initialize: function (){this.testAttr = true;
this.accum = ""; }} );
+ ['initialize', function (){this.testAttr = true;
this.accum = ""; }] );
LzSub.addProperty('testAttr2', "foo");
LzSub.addProperty('testMethod', function (a) { this.accum = this.accum +
a; });
@@ -73,10 +73,9 @@
var LzSubSub = Class.make( "LzSubSub", LzSub,
- {initialize: function () {
- #pragma "methodName=initialize"
+ ['initialize', function () {
super.initialize();
- }} );
+ }] );
LzSubSub.addProperty('testMethod', function (a) {
#pragma "methodName=testMethod"
super.testMethod(a); });
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins