canceled and the next setting wasn't an autowidget. The autowidget would
continue to appear because it was never destroyed.
Signed-off-by: Joseph Lewis <joehms22@gmail.com>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
var fmClass = osSettings[name].fm_class;
+ if(osEditAutoWidget) {
+ osEditAutoWidget.domNode.parentNode.removeChild(osEditAutoWidget.domNode);
+ osEditAutoWidget.destroy();
+ osEditAutoWidget = null;
+ }
+
if(fmClass) {
if(osEditAutoWidget) {