On Thu, Feb 23, 2012 at 07:44, [email protected] <
[email protected]> wrote:
> Hello,
>
> i try this
>
>
> this.listeners["changeValue"] =
> this.widgets["datum"].addListener("changeValue", function(e) {
> this.loadTimelist();
> },this);
>
> this.listeners["SHOPID"] =
> this.widgets["SHOPID"].addListener("changeSelection", function(e) {
> this.loadTimelist();
> },this);
>
>
> and later this
>
> if(this.listeners["datum_changeValue"]) {
>
>
> this.widgets["datum"].removeListenerById(this.listeners["datum_changeValue"]);
> }
> if(this.listeners["SHOPID_changeSelection"]) {
>
>
> this.widgets["SHOPID"].removeListenerById(this.listeners["SHOPID_changeSelection"]);
> }
> this.listeners = [];
>
> but the events not destroyed
You assign the listener id to this.listeners["changeValue"] but you then
remove the listener with id this.listeners["datum_changeValue"]. It would
probably work better if you removed a listener with a defined id.
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel