On Tue, Jan 20, 2009 at 8:52 AM, Martin <[email protected]> wrote:
>
> So I tried this:
> (exactly, no lines between the calls).
>
> var sess=new Object();
> sess["type"]="string";
> sess["value"]=(session!="")?''+session+'':"unknown";
> alert(sess["type"]);
>
> before the call I think that is doing this bad thing with number as type,
> alert() normaly alerted "string". But after the "bad call", it alerted
> "5" (or other number)! How can this happen? when I do not modify the data
> in any way :( Alert() says something else than what is written 2 lines
> before :(
>
You've encountered a generator error. The code you provided generates this:
qx.Class.define(c,
{extend:qx.application.Standalone,
members:{main:function(){arguments.callee.base.call(this);
var h=new Object();
h[e]=g;
h[d]=(session!=a)?b:f;
alert(h["type"]);
Note that the assignment of sess["type"] changes to h[e] yet the alert still
has the string "type". This is an issue for Thomas, I think.
Derrell
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel