Hello,

I have written a class that subclasses qx.ui.window.Window and has static
variable IMAGE_NAME. I pass an instance of the class in the constructor of
the other class and would like to access static variable IMAGE_NAME by using
the instance reference. The code looks like:

qx.Class.define("my.package.OtherClass", {
extend : qx.ui.toolbar.Button,
construct : function(winService)
{
    …
    var imgFile = path + winService.self(arguments).IMAGE_NAME + “.png”
    …
}

But winService.self(arguments).IMAGE_NAME is not defined i.e. has
“undefined” value.
Did I do something wrong or is it normal?
How can I access static variable IMAGE_NAME by using the instance reference?
Is it possible?

Sorry for my English. :-)

Thank you in advance,
Dioc

-- 
View this message in context: 
http://www.nabble.com/someObject.self%28arguments%29.staticVar-does-not-work-tf3981046.html#a11301571
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to