Skip to content

Commit

Permalink
Rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
nbarrientos committed Oct 12, 2010
1 parent 2f2859c commit c97c9a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions reddit_preloadimgs.js
Expand Up @@ -20,7 +20,7 @@
}
}

function GM_rip_flip_visibility(expando, button) {
function GM_rip_switch_visibility(expando, button) {
var showing = button.data("showing");
showing ? expando.hide() : expando.show();
var text = showing ? "SHOW" : "HIDE";
Expand All @@ -42,10 +42,10 @@
.appendTo(expando_button);
$(this).show();
expando_button_anchor.click(function() {
GM_rip_flip_visibility(expando, expando_button_anchor);
GM_rip_switch_visibility(expando, expando_button_anchor);
});
$(this).click(function() {
GM_rip_flip_visibility(expando, expando_button_anchor);
GM_rip_switch_visibility(expando, expando_button_anchor);
});
}

Expand Down

0 comments on commit c97c9a1

Please sign in to comment.