Opened 9 years ago

Closed 9 years ago

#11557 closed defect (fixed)

dijit.Editor's Tables plugin doesn't destroy totally

Reported by: tuanngo Owned by: Jared Jurkiewicz
Priority: high Milestone: 1.5.1
Component: Editor Version: 1.5
Keywords: Cc:
Blocked By: Blocking:

Description

Create the dijit.Editor with plugin dojox.editor.plugins.TablePlugins? programmatically.

After dijit.Editor shows correctly, call editor.destroy() or editor.destroyRecursive().

Check which widgets are left by console.dir(dijit.registry);. Then found remaining 10 widgets.

Attachments (1)

destroyEditor-tableplugin-notCleanTotally.html (7.7 KB) - added by tuanngo 9 years ago.

Download all attachments as: .zip

Change History (8)

Changed 9 years ago by tuanngo

comment:1 Changed 9 years ago by tuanngo

destroy the plugin's menu will help, something like this

dojox.editor.plugins.TableContextMenu?.extend({

destroy: function() {

if(this.menu) {

this.menu.destroyRecursive(); delete this.menu;

} this.inherited(arguments);

}

});

comment:2 Changed 9 years ago by bill

Component: GeneralEditor
Owner: anonymous deleted

comment:3 Changed 9 years ago by Jared Jurkiewicz

Owner: set to Jared Jurkiewicz

comment:3 Changed 9 years ago by Jared Jurkiewicz

(In [22824]) Minor fix to table plugins. refs #11557

comment:4 Changed 9 years ago by Jared Jurkiewicz

Milestone: tbd1.5.1

comment:5 Changed 9 years ago by Jared Jurkiewicz

Updated in: [22824]

comment:7 Changed 9 years ago by Jared Jurkiewicz

Resolution: fixed
Status: newclosed

(In [22825]) Minor fix to table plugins. fixes #11557

Note: See TracTickets for help on using tickets.