Opened 11 years ago

Closed 11 years ago

#7584 closed task (wontfix)

Already existing widget is not destroyed.

Reported by: Les Owned by: anonymous
Priority: high Milestone: 1.2
Component: Dijit Version: 1.1.1
Keywords: Cc:
Blocked By: Blocking:

Description

Here's a code fragment from the dijit.WidgetSet? class (manager.js)

add: function(/*Widget*/ widget){

if(this._hash[widget.id]){

throw new Error("Tried to register widget with id==" + widget.id + " but that id is already registered");

} this._hash[widget.id]=widget;

}

I believe the already existing widget should be destroyed before new widget is stored in the _hash.

Change History (1)

comment:1 Changed 11 years ago by bill

Component: GeneralDijit
Resolution: wontfix
Status: newclosed
Type: defecttask

Sorry, it's working as designed. I didn't want to just delete an existing widget without the developer specifically saying that it should be deleted. Trac (this bug database) isn't a place for discussions about API changes.

Note: See TracTickets for help on using tickets.