|
|
|
[
Permlink
| « Hide
]
Josh Crowley - 06/Apr/07 01:15 PM
Assigning to Max.
Running this in DHTML will give the error.
<canvas> <dataset name="dset"> <example>data</example> </dataset> <view datapath="dset:/example"> <view datapath="${parent.datapath}"/> </view> </canvas> Updated testcase:
<canvas debug="true"> <dataset name="dset"> <example>data</example> </dataset> <view datapath="dset:/example" onclick="Debug.write(this.datapath.serialize())" bgcolor="green" width="100" height="20"> <view x="40" datapath="${parent.datapath}" bgcolor="red" width="100" height="20" onclick="Debug.write(this.datapath.serialize())"/> </view> <text y="40">Clicking on the red and green boxes should show the same result in the debugger for swf and dhtml</text> </canvas> Author: max
Date: 2007-06-11 18:00:29 -0700 (Mon, 11 Jun 2007) New Revision: 5385 Modified: openlaszlo/branches/legals/WEB-INF/lps/lfc/data/LzDatapointer.lzs Log: Change 20070611-maxcarlson-Y by maxcarlson@plastik on 2007-06-11 17:31:06 PDT in /Users/maxcarlson/openlaszlo/legals-clean for http://svn.openlaszlo.org/openlaszlo/branches/legals Summary: Fix for datapath="${parent.datapath}" New Features: Bugs Fixed: Technical Reviewer: jcrowley QA Reviewer: promanik Doc Reviewer: (pending) Documentation: Release Notes: Details: LzDatapointer.lzs - parsePath() tests to see if path passed in is already a LzDatapath. Tests: See Modified: openlaszlo/branches/legals/WEB-INF/lps/lfc/data/LzDatapointer.lzs =================================================================== --- openlaszlo/branches/legals/WEB-INF/lps/lfc/data/LzDatapointer.lzs 2007-06-12 00:54:39 UTC (rev 5384) +++ openlaszlo/branches/legals/WEB-INF/lps/lfc/data/LzDatapointer.lzs 2007-06-12 01:00:29 UTC (rev 5385) @@ -573,6 +573,7 @@ * @access private */ function parsePath ( pa ){ + if (pa instanceof LzDatapath) pa = pa.xpath; var q = this.ppcache[ pa ]; if ( q ) { var l = q['islocaldata'] _______________________________________________ Laszlo-checkins mailing list Laszlo-checkins@openlaszlo.org http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins (4.0 branch (4.0.3RC) local build r5678)
Ran the testcase Max listed in his comments. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||