On Tue, May 31, 2011 at 14:57, randylb <[email protected]> wrote:
> The link to the playground demo was very helpful but I still am unable to
> return a value from the boolean script. My implementation is very similar
> to
> the demo except that it is called from a table inside a container on the
> log
> page. The following is giving me the trouble;
>
> callListeners = qx.lang.Function.bind(function(map)
> {
> this.fireDataEvent("toggle", { value : map.value, index : map.index
> });
> }, this);
>
> The error I am getting when clicking on the checkbox is "callListeners is
> not defined"...I also get the same message when I instantiate it.
>
> when I call it with "this.callListeners" I get the message
> "this.callListeners is not a function"
>
You haven't provided enough context to know what's going on. What object is
'this', and would you expect there to be a this.callListeners method
attached to it?
Did you intend to assign the bound function to *this*.callListeners instead
of to local (or global) variable callListeners?
*this.*callListeners = qx.lang.Function.bind(function(map)
{
this.fireDataEvent("toggle",
{ value : map.value, index :
map.index });
}, this);
Derrell
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel