Author: hqm
Date: 2007-07-20 11:07:29 -0700 (Fri, 20 Jul 2007)
New Revision: 5732
Modified:
openlaszlo/branches/legals/WEB-INF/lps/lfc/data/LzDataElement.lzs
Log:
Change 20070720-hqm-8 by [EMAIL PROTECTED] on 2007-07-20 13:05:54 EDT
in /cygdrive/c/users/hqm/openlaszlo/legals4/WEB-INF/lps/lfc
for http://svn.openlaszlo.org/openlaszlo/branches/legals/WEB-INF/lps/lfc
Summary: fix for valueToElement
New Features:
Bugs Fixed: LPP-4289
Technical Reviewer: ptw (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
make LzDataElement.valueToElement works as a static method
Tests:
try typing this to debugger
LzDataElement.valueToElement(259)
should get something like this
LzDataElement#3| <element>259</element>;
Modified: openlaszlo/branches/legals/WEB-INF/lps/lfc/data/LzDataElement.lzs
===================================================================
--- openlaszlo/branches/legals/WEB-INF/lps/lfc/data/LzDataElement.lzs
2007-07-20 17:10:39 UTC (rev 5731)
+++ openlaszlo/branches/legals/WEB-INF/lps/lfc/data/LzDataElement.lzs
2007-07-20 18:07:29 UTC (rev 5732)
@@ -564,8 +564,8 @@
/**
* Get LzDataElement representation of primitive type, array, or object value.
*/
-function valueToElement ( o ) {
- var n = new LzDataElement("element", { }, this.__LZv2E(o));
+static function valueToElement ( o ) {
+ var n = new LzDataElement("element", { }, LzDataElementTrait.__LZv2E(o));
return n;
}
@@ -574,7 +574,7 @@
* @return array of LzDataElements
* @access private
*/
-function __LZv2E ( o ) {
+static function __LZv2E ( o ) {
var type = typeof( o );
type.toLowerCase();
@@ -689,4 +689,6 @@
* @type Object
*/
var attributes = null;
+
+static var valueToElement = LzDataElementTrait.valueToElement;
}
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins