Opened 7 years ago

Closed 6 years ago

Last modified 6 years ago

#18491 closed defect (fixed)

dojox/widget/Toaster is leaking when using messageTopic

Reported by: tanneman Owned by: dante
Priority: undecided Milestone: 1.11
Component: DojoX Widgets Version: 1.10.4
Keywords: Cc:
Blocked By: Blocking:


Found in version 1.10.4 Open the file dojox/widget/Toaster

See line 82 the connect.subscribe() should be wrapped with a this.own() in order to make sure the subscription is removed when the widget is destroyed.

So it should read:

this.own(connect.subscribe(this.messageTopic, this, "_handleMessage"));

Change History (4)

comment:1 Changed 7 years ago by bill

Makes sense, or alternately this presumably works:

this.subscribe(this.messageTopic, "_handleMessage");

comment:2 Changed 6 years ago by dylan

Started working on cleaning this code up to use more modern best practices. It's a bit more involved than expected, but I'm most of the way done, see

comment:3 Changed 6 years ago by dylans <[email protected]…>

Resolution: fixed
Status: newclosed

In 56ee55d6b240de0b921f4ec200bd3e08951cbdcc/dojox:

Error: Processor CommitTicketReference failed
Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? 

comment:4 Changed 6 years ago by dylan

Milestone: tbd1.11

Does not cleanly backport, so leaving as 1.11.

Note: See TracTickets for help on using tickets.