Hi Thomas,

>> At least, that's what I think is happening!  In the debugger, I can see
>> the variables R and T match what they were declared as in the initial
>> closure but S is undefined.
>
>So you are using R, T and S in your original code?

No, just S

>> In my code, the variable S wasn't actually
>> used (eg a copy-and-paste error or something)
>
>Wait. If you didn't use it, why do expect it to be defined?!

It was a typo; but it caused one of my literal values (a string) to become
undefined.  If I deleted that line the literal started working again.  The
code produced by the generator is understandably obfuscated so I found it
difficult to be sure what exactly was happening, but I'm reporting the
observed behaviour

>> and as soon as I deleted
>> the line "var S=null;" everything works as expected;
>
>So what is S then? If it is no variable you originally used, it might be
>a replacement of some longer variable name.

S was a local variable in my original source; I removed it from my original
source and rebuilt and my problem went away.  The coincidence was that the
generator _also_ provided a variable S in the closure that called
qx.Class.define(...).

>> the only odd thing
>> is that the values of R, S, and T changed so that T had what previously
>> should have been S, S was what previously was R, and so on.
>
>So here I'm lost. You said S wasn't actually used in your code!?

It wasn't!  I removed my unnecessary "var S=null" code and expected the
generator's S to be my original literal string value, but the values shifted
round.

Is that any clearer?

John




------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to