Hi Philipp,

Mustafa is right, you're trying to set a property that doesn't exist, 
namely "content". You can use the "value" property instead if you don't 
want to pass the string into the constructor.

But you should definitely get an error in the source version. If you 
don't, you should first make sure that debugging code is enabled in your 
source app (it is by default but perhaps you're using a modified 
configuration). This should return true when run against your source app 
in e.g. Firebug:

qx.core.Variant.isSet("qx.debug", "on")

If it does, make sure you've registered a log appender to display the 
messages. There should be a block like this in the main method of your 
Application.js right after the this.base(arguments) call:

       // Enable logging in debug variant
       if (qx.core.Variant.isSet("qx.debug", "on"))
       {
         // support native logging capabilities, e.g. Firebug for Firefox
         qx.log.appender.Native;
         // support additional cross-browser console. Press F7 to toggle 
visibility
         qx.log.appender.Console;
       }


Hope this helps,
Daniel

Philipp Gruber schrieb:
> Hello everyone,
> 
> I just encountered a little bug, that took me 3 days to find :(
> 
> Basically, this:
>>      doc.add(new qx.ui.basic.Label().set({
>>        content: "bla <b>bla</b> bla",
>>        rich: true
>>      }), {left: 100, top: 50});
> works in source mode, but not in build mode.
> 
> In build mode I get
>> Error: this[P[O]] is not a function
> in /build/script/myapplication.js
> 
> To fix it, I replaced the above stuff with:
>> doc.add(new qx.ui.basic.Label("bla <b>bla</b> bla").set({rich: true}), 
>> {left: 100, top: 50});
> 
> Is there any good reason for this?
> At least it would help if the source version (or generate.py build)
> would tell me about it.
> 
> regards,
> Philipp Gruber
> 
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to