Author: bargull
Date: 2007-11-05 04:09:51 -0800 (Mon, 05 Nov 2007)
New Revision: 7127
Modified:
openlaszlo/trunk/lps/components/base/basegridrow.lzx
Log:
Change 20071102-bargull-0 by [EMAIL PROTECTED] on 2007-11-02 00:57:53
in /home/Admin/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Add null-check in basegridrow#setRegularColor(..)
New Features:
Bugs Fixed:
LPP-5025 - Warning in "basegridrow#setRegularColor(..)"
Technical Reviewer: jcrowley
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
Added a null-check to avoid a debugger-warning when instantiating a grid by
script.
Tests:
Attached at bugreport.
Modified: openlaszlo/trunk/lps/components/base/basegridrow.lzx
===================================================================
--- openlaszlo/trunk/lps/components/base/basegridrow.lzx 2007-11-05
11:31:07 UTC (rev 7126)
+++ openlaszlo/trunk/lps/components/base/basegridrow.lzx 2007-11-05
12:09:51 UTC (rev 7127)
@@ -41,7 +41,10 @@
</method>
<method name="setRegularColor" >
- var pos = this.datapath.xpathQuery( 'position()' );
+ var pos = 0;
+ if (this.datapath != null) {
+ pos = this.datapath.xpathQuery( 'position()' );
+ }
var nextColor = null;
if ( pos % 2 == 0 ) nextColor = ownerGrid.bgcolor0;
if ( pos % 2 == 1 ) nextColor = ownerGrid.bgcolor1;
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins