I don't think so - now that scripts are compiled incrementally instead
of all at once, I can't rely on the output buffer being empty. The
scripts should still be compiled in the right order, AFAIK.
Regards,
Max Carlson
OpenLaszlo.org
On 5/20/10 3:38 AM, P T Withington wrote:
Is there a deeper problem here? Are you saying addScript is non-deterministic?
Certainly there are other places in the compiler that expect things to be
written in order (like classes defined before used).
On 2010-05-19, at 19:52, Max Carlson wrote:
Change 20100519-maxcarlson-d by maxcarl...@friendly on 2010-05-19 16:45:20 PDT
in /Users/maxcarlson/openlaszlo/trunk-clean
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Fix DHTML master sprites
Bugs Fixed: LPP-9016 - regression: DHTML master sprites not working
Technical Reviewer: hminsky
QA Reviewer: ptw
Details: DHTMLCompiler - Correct comment
DHTMLWriter - Remove extra spaces in mResourceDefs resource table, now that
it's not being minified by script compiler. addResourceDefs() writes the
resource table directly to the outputstream, to ensure it's written first.
Tests: cd laszlo-explorer; lzc --runtime=dhtml explore-nav.lzx. explore-nav.js
LzResourceLibrary entries will be on the first line.
Files:
M WEB-INF/lps/server/src/org/openlaszlo/sc/DHTMLCompiler.java
M WEB-INF/lps/server/src/org/openlaszlo/compiler/DHTMLWriter.java
Changeset:
http://svn.openlaszlo.org/openlaszlo/patches/20100519-maxcarlson-d.tar