From 6e58134ccfffa28d84c94c43eae5cd9cb5ae2efe Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Wed, 12 Sep 2012 19:00:25 +0530 Subject: [PATCH] appframe bugfix --- js/wn/ui/appframe.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/wn/ui/appframe.js b/js/wn/ui/appframe.js index d26ad26aa4..a47a728564 100644 --- a/js/wn/ui/appframe.js +++ b/js/wn/ui/appframe.js @@ -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)