[Laszlo-checkins] r12462 - openlaszlo/trunk/lps/components/utils/replicator
bargull@openlaszlo.org
bargull at openlaszlo.org
Tue Jan 13 12:07:38 PST 2009
Author: bargull
Date: 2009-01-13 12:07:35 -0800 (Tue, 13 Jan 2009)
New Revision: 12462
Modified:
openlaszlo/trunk/lps/components/utils/replicator/replicator.lzx
Log:
Change 20090113-bargull-4jI by bargull at dell--p4--2-53 on 2009-01-13 19:58:58
in /home/Admin/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: use proper Array test
New Features:
Bugs Fixed: LPP-7624
Technical Reviewer: ptw
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
use "p is Array" to test if "p" is an Array, don't use property checks.
Tests:
Modified: openlaszlo/trunk/lps/components/utils/replicator/replicator.lzx
===================================================================
--- openlaszlo/trunk/lps/components/utils/replicator/replicator.lzx 2009-01-13 19:17:47 UTC (rev 12461)
+++ openlaszlo/trunk/lps/components/utils/replicator/replicator.lzx 2009-01-13 20:07:35 UTC (rev 12462)
@@ -1,4 +1,4 @@
-<!-- Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. -->
+<!-- Copyright 2001-2009 Laszlo Systems, Inc. All Rights Reserved. -->
<library>
<!--- This is a declared replicator for visual elements. Unlike
OpenLaszlo''s data-replication feature, a replicator can take an
@@ -79,7 +79,7 @@
<![CDATA[
// TODO: use changepackage to do something smarter here
var p = this._pointer.xpathQuery(this.xpath);
- if (p && ! p['length']) p = [p];
+ if (p && ! (p is Array)) p = [p];
this.setNodes(p);
]]>
</method>
More information about the Laszlo-checkins
mailing list