Skip to content
This repository has been archived by the owner on May 13, 2018. It is now read-only.

Commit

Permalink
Make href optional for setVisibility() as well
Browse files Browse the repository at this point in the history
  • Loading branch information
voxpelli committed Jun 14, 2012
1 parent 19f6b1e commit eb7050c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/urlbarbutton.js
Expand Up @@ -63,11 +63,9 @@ UrlbarButton = function (options) {
};

setVisibility = function (show, href) {
if (href) {
getButtons(href).forEach(function (button) {
button.collapsed = !show;
});
}
getButtons(href).forEach(function (button) {
button.collapsed = !show;
});
};

getVisibility = function (href) {
Expand Down

0 comments on commit eb7050c

Please sign in to comment.