Avoid error if menu was not created

This commit is contained in:
Nathan Gray 2013-08-26 23:29:52 +00:00
parent 5a5b02c304
commit 2875455a59

View File

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