# HG changeset patch # User rougeronj # Date 1434640631 -7200 # Node ID a6a3b0e3da576a81ec929314e0ba8706566cd525 # Parent 3329b413db18cf00440287654cbf4ab520641f67 'hideButtons' function can be call by view hides the nodes. So we have to check if the button is drawn (i.e. sector is defined) first before hiding it. diff -r 3329b413db18 -r a6a3b0e3da57 client/js/renderer/basebutton.js --- a/client/js/renderer/basebutton.js Thu Jun 18 16:54:57 2015 +0200 +++ b/client/js/renderer/basebutton.js Thu Jun 18 17:17:11 2015 +0200 @@ -18,7 +18,9 @@ this.sector.show(); }, hide: function() { - this.sector.hide(); + if (this.sector){ + this.sector.hide(); + } }, select: function() { this.sector.select();