appframe bugfix

This commit is contained in:
Rushabh Mehta 2012-09-12 19:00:25 +05:30
parent 15b5bc9ac7
commit 6e58134ccf

View file

@ -32,7 +32,7 @@ wn.ui.AppFrame = Class.extend({
return this.buttons[label];
},
clear_buttons: function() {
this.toolbar.empty();
this.toolbar && this.toolbar.empty();
},
add_toolbar: function() {
if(!this.toolbar)