Skip to content

Commit

Permalink
make network_lc into camel case networkLC
Browse files Browse the repository at this point in the history
  • Loading branch information
LEAFERx committed Oct 4, 2017
1 parent 57cd8df commit 583de52
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions source/lib/needsharebutton/needsharebutton.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,15 +472,15 @@
if (myoptions.networks.hasOwnProperty(network)) {
var link = document.createElement("span");
network = myoptions.networks[network].trim();
var network_lc = network.toLowerCase();
link.className = iconClass + network_lc;
var networkLC = network.toLowerCase();
link.className = iconClass + networkLC;
var fontello = ["weibo", "wechat", "douban", "qqzone", "renren"];
if (fontello.indexOf(network_lc) === -1) {
link.className += " social-" + network_lc;
if (fontello.indexOf(networkLC) === -1) {
link.className += " social-" + networkLC;
} else {
link.className += " icon-" + network_lc;
link.className += " icon-" + networkLC;
}
link.dataset.network = network_lc;
link.dataset.network = networkLC;
link.title = network;
dropdownEl.appendChild(link);
}
Expand Down

0 comments on commit 583de52

Please sign in to comment.