Permalink
Browse files

fixed toggling visibility of things

  • Loading branch information...
1 parent 01bbf8b commit f8745274cd8e780a9258ec01536ae598981342aa @brandly committed Feb 24, 2014
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/snapchat.js
View
@@ -109,7 +109,7 @@
pencil.setCurrentColor(color);
},
isVisibile: function() {
- colorPicker.element.style.display === '';
+ return colorPicker.element.style.display === '';
},
show: function() {
utils.css(colorPicker.element, {display: ''});
@@ -128,9 +128,11 @@
if (colorPicker.isVisibile()) {
colorPicker.hide();
bigCanvas.disable();
+ undo.hide();
} else {
colorPicker.show();
bigCanvas.enable();
+ undo.refresh();
}
});

0 comments on commit f874527

Please sign in to comment.