Opened 14 years ago
Closed 14 years ago
#4333 closed defect (fixed)
dijit._tree.Controller.onDelete() breaks on MSIE 7.0
Reported by: | guest | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Dijit | Version: | 0.9 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
dijit._tree.Controller.onDelete() throws exception "Not implemented" when run on MSIE 7.0. The reason is that the local variable "parent" is not declared.
Bugged section:
onDelete: function(/*Object*/ message){
summary: delete event from the store since the object has just been deleted, we need to use the name directly var identity = this.store.getIdentity(message); var node = this._itemNodeMap[identity]; if (node){
parent = node.getParent( true ); <-- DECLARE "parent" HERE parent.deleteNode(node); this._itemNodeMap[identity]=null;
}
},
Note: See
TracTickets for help on using
tickets.
(In [10402]) Fix various bugs with updates to store. Fixes #4333, refs #4257.