Avoid jQueryUI error about not created menu

This commit is contained in:
Nathan Gray 2013-08-30 16:27:34 +00:00
parent 4760b5f55e
commit dc46ebed05

View File

@ -193,7 +193,7 @@ var et2_dropdown_button = et2_inputWidget.extend(
destroy: function() {
// Destroy widget
if(this.menu) this.menu.menu("destroy");
if(this.menu && this.menu.menu("widget")) this.menu.menu("destroy");
// Null children
this.image = null;