Hi,

When you add a listener with a function as like this:
widget.getSelection().addListener("change", loadProduktDetailData);

Than you can remove it (when the reference to the added function is the 
same), like this:
widget.getSelection().removeListener("change", loadProduktDetailData);

Cheers,
Chris

Am 22.12.2011 13:24, schrieb [email protected]:
> and how can i remove all listeners?
>
>
> i try this
>
> widget.getSelection().addListener("change", loadProduktDetailData);
>
> the las is a functionname, but it dosent run:( What is wrong?
>
> thank you
>
>
>> Hi,
>>
>> you can't remove one listener without the reference from function you
>> try to remove.
>> Rewrite your code by using a class method or save the reference from the
>> method and remove this later.
>>
>> Cheers,
>> Chris
>>
>> Am 22.12.2011 12:56, schrieb [email protected]:
>>> Hi,
>>>
>>> how can i remove a listener, i have defined like this
>>>
>>>                     this.widgets["PRODUKTID"].addListener("change",
>>> function(e) {
>>>                         this.loadProduktDetailData();
>>>                         }, this);
>>>
>>> thank you
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Write once. Port to many.
>>> Get the SDK and tools to simplify cross-platform app development. Create
>>> new or port existing apps to sell to consumers worldwide. Explore the
>>> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
>>> http://p.sf.net/sfu/intel-appdev
>>> _______________________________________________
>>> qooxdoo-devel mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>> ------------------------------------------------------------------------------
>> Write once. Port to many.
>> Get the SDK and tools to simplify cross-platform app development. Create
>> new or port existing apps to sell to consumers worldwide. Explore the
>> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
>> http://p.sf.net/sfu/intel-appdev
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
> ------------------------------------------------------------------------------
> Write once. Port to many.
> Get the SDK and tools to simplify cross-platform app development. Create
> new or port existing apps to sell to consumers worldwide. Explore the
> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
> http://p.sf.net/sfu/intel-appdev
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to