I have something like:

qx.Class.define("test.ClassWithStatics",
{
        statics:
        {
                constant1: "john",
                constant2: "doe"
        },

        properties:
        {
                someProp:
                {
                        init: test.ClassWithStatics.constant1,
                        check: [test.ClassWithStatics.constant1, 
test.ClassWithStatics.constant2]
                }
        }
});

in a class which I compile into a qooxdoo app, and it works fine.

However, when I try to use the same class on node.js (after having
required qooxdoo), I get:

TypeError: Cannot read property 'constant1' of undefined

at line "init: test.ClassWithStatics.constant1," when requiring
ClassWithStatics.js.

Does anybody have any idea why? Is there a nice workaround, i.e. one
that shouldn't force me to move the constants out of
test.ClassWithStatics?

I can't paste a URL for the playground since the error happens only
when the code is loaded on node, not in a browser.

-- 
Rule of Diversity: Distrust all claims for “one true way”. (Eric S.
Raymond, The Art Of Unix Programming)

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to