Solved! Go to Solution.
Try to register the TimeSlider with a different id and destroy it with that new Id.
var customFullExtent = function customFullExtent() { map.centerAndZoom(initialCenter, initialLevel); }; //create as global variable so you can call from HTML lang.setObject("customFullExtent", customFullExtent);
var thing2 = on(stopEdit, "click", function destroyEditor() { if (dom.byId("editDivDyn") != null) { //This is the dynamic DIV where I put the Editor widget var widgets = registry.findWidgets(editPane_pane); // This is one DIV upwards from where the dynamic DIV is placed if (widgets) { arrayUtils.forEach(widgets, function(w) { w.destroyRecursive(false); //Destroys widget and dynamic DOM node w=null; }); } } });