Merge pull request #1053 from unclecheese/patch-11

Fix edge case in which uninitialized buttons are being destroyed.
This commit is contained in:
Ingo Schommer 2012-12-20 11:08:47 -08:00
commit c054ab49a2

View File

@ -575,7 +575,7 @@ jQuery.noConflict();
this._super(); this._super();
}, },
onremove: function() { onremove: function() {
this.button('destroy'); if(this.data('button')) this.button('destroy');
this._super(); this._super();
} }
}); });