Re: [qooxdoo-devel] Eval and run-build

2009-08-07 Thread A.Yerenkow
On 07.08.2009 23:14, Jim Hunter wrote: Since I don't have the full context of where these lines are used I can't tell yo why it's failing. Does it give you an error message? What does it say? I don't know the scope of 'this', that may be why it is failing, wrong scope. Yes, eval can be used i

Re: [qooxdoo-devel] Eval and run-build

2009-08-07 Thread Jim Hunter
Since I don't have the full context of where these lines are used I can't tell yo why it's failing. Does it give you an error message? What does it say? I don't know the scope of 'this', that may be why it is failing, wrong scope. Yes, eval can be used in lots of places, but in general it is a slo

Re: [qooxdoo-devel] Eval and run-build

2009-08-07 Thread A.Yerenkow
On 07.08.2009 20:17, Jim Hunter wrote: I have read this over a couple of times and I don't see why the following code won't work, eliminating the need for the eval in the first place: var columnTitle = "get from somewhere else"; var myLabel = new qx.ui.form.Label(this.tr (colum

Re: [qooxdoo-devel] Eval and run-build

2009-08-07 Thread Jim Hunter
I have read this over a couple of times and I don't see why the following code won't work, eliminating the need for the eval in the first place: var columnTitle = "get from somewhere else"; var myLabel = new qx.ui.form.Label(this.tr(columnTitle)) even if the variable name gets shortened, both ins

Re: [qooxdoo-devel] Eval and run-build

2009-08-07 Thread A.Yerenkow
On 07.08.2009 14:39, thron7 wrote: > >> I'd like to have ability to specify even scoped var names, which preserve; >> Can someone point me where to dig? :) >> In theory, this should be easy; parse config - find names which to >> preserve; when parsig/building, simply check var name against this

Re: [qooxdoo-devel] Eval and run-build

2009-08-07 Thread thron7
> I'd like to have ability to specify even scoped var names, which preserve; > Can someone point me where to dig? :) > In theory, this should be easy; parse config - find names which to > preserve; when parsig/building, simply check var name against this list. > > You might want to open an en

Re: [qooxdoo-devel] Eval and run-build

2009-08-07 Thread A.Yerenkow
On 07.08.2009 12:15, thron7 wrote: > >> I solved this, like this: >> >> var myLabel = new qx.ui.Label(eval("this.tr('" + columnTitle + "');")); >> >> which builds into something like this: >> var y = "this.tr('" + Dd+ "');"; >> var De = new qx.ui.Label(eval(y)); >> >> > Good catch. But yo

Re: [qooxdoo-devel] Eval and run-build

2009-08-07 Thread thron7
> I solved this, like this: > > var myLabel = new qx.ui.Label(eval("this.tr('" + columnTitle + "');")); > > which builds into something like this: > var y = "this.tr('" + Dd+ "');"; > var De = new qx.ui.Label(eval(y)); > Good catch. But you are aware that you are brushing the translation syst

[qooxdoo-devel] Eval and run-build

2009-08-07 Thread A.Yerenkow
Hello guys! I have a little problem with eval(); and run-build; because code like: var columnTitle = "get from somewhere else"; var myLabel = new qx.ui.Label(eval("this.tr(columnTitle);")); changes to: var y = "this.tr(columnTitle);" var Dd = "get from somewhere else"; var De = new qx.ui.Label(eva