Hi David,

dperez wrote:
> I don't understand this:
>
> I have this simple class.
>
> qx.Class.define('CeldaIco', {
>       extend: qx.ui.table.cellrenderer.Icon,
>
>       //constructor: function() {
>       //      arguments.callee.base.apply(this, arguments);
>       //},
>       members: {
>               _identifyImage: function(cellInfo) {
>                       return { imageWidth:16, imageHeight:16, url: 
> cellInfo.value+'-peq' };
>               }
>       }
> });
>
> If I uncomment the constructor, I receive this error:
>
> Invalid type of key "constructor" in class "CeldaIco"! The type of the key
> must be "function Object() { [native code] }"!
> if(typeof config[key]!==allowed[key]){throw new Error('Invalid type of key
> "'+ke...
I think you just have a typo in your code. The constructor has the "construct" 
key. 

So if you write

construct: function() {
  arguments.callee.base.apply(this, arguments);
},

everything should work well.

cheers,
  Alex

-------------------------------------------------------------------------
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