On 8/22/10 1:10 AM, Henry Minsky wrote:


    On Sat, Aug 21, 2010 at 7:10 PM, Max Carlson <
    <mailto:[email protected]>[email protected]
    <mailto:[email protected]>> wrote:

        Can you use RegExps instead of string ops for the parser in
        embednew.js?  Also, could the parsing/unparsing code be shared
        by embednew.js, dev-console.lzx, LzDebug and LzKernelUtils?


    I was having trouble  in LzDebug.makeWindow() with calling out
    from the app to lzembed to get the parser service;  it seemed like
    the lz.embed code was not initialized yet when LzDebug tried to
    call it.  Maybe that code runs too early in the app init process
    to reliably
    talk to lz.embed ? So that's why I ended up putting a copy of the
    options parser into the LFC
    (in LzKernelUtils).


    Sure, but why not share the same include across both places?


You mean include the same file into the LFC and into embed.js? I guess I
could
do that, although that would mean I would not want to use regexps
because they
aren't available in  natively in swf8. Also, where should the source
file live?

You can use RegExps in swf8, thanks to André's implementation. You can put the source file in lps/includes/source/ or WEB-INF/lps/lfc/, or we could make up a new place. Be sure to put a comment calling out the fact that it's shred across both places.

--
Regards,
Max Carlson
OpenLaszlo.org

Reply via email to