@ -36,9 +36,11 @@ Dialog.include({
},
close: function() {
var draggable = this.$modal.draggable( "instance" );
if (draggable) {
this.$modal.draggable("destroy");
if (this.$modal) {
var draggable = this.$modal.draggable("instance");
}
return this._super.apply(this, arguments);