Permalink
Browse files

Panel show/hide

  • Loading branch information...
izb committed Jun 7, 2013
1 parent 03fb452 commit 277936c9ae66fb77a22216120361b29bed0804c5
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/input/ui/panel.js
View
@@ -46,7 +46,12 @@ function(uid, Sprite) {
if (doShow===undefined) {
doShow = true;
}
- /* TODO */
+
+ if (doShow) {
+ this.sn.activatePanel(this);
+ } else {
+ this.sn.deactivatePanel(this);
+ }
return this;
};

0 comments on commit 277936c

Please sign in to comment.