diff --git a/dist/js/social-share-kit.js b/dist/js/social-share-kit.js index 31089bb..a2ebbd3 100644 --- a/dist/js/social-share-kit.js +++ b/dist/js/social-share-kit.js @@ -28,8 +28,7 @@ var SocialShareKit = (function () { if (el.parentNode.className.indexOf('ssk-count') !== -1) { //networksToCount.push(network); network = network[0]; - var shareUrl = getShareUrl(network, el), - uniqueKey = network + sep + shareUrl; + uniqueKey = network + sep + getShareUrl(network, el); if (!(uniqueKey in urlsToCount)) { urlsToCount[uniqueKey] = []; } @@ -262,18 +261,9 @@ var SocialShareKit = (function () { }; break; } - url && parseFunc && JSONPRequest(url, parseFunc); + url && parseFunc && JSONPRequest(network, url, parseFunc); } - - var VK = { - Share: { - count: function (value, count) { - $('#vkontakte_count').html(count); - } - } - }; - function JSONPRequest(network, url, callback) { var callbackName = 'cb_' + network + '_' + Math.round(100000 * Math.random()), script = document.createElement('script'); diff --git a/dist/js/social-share-kit.min.js b/dist/js/social-share-kit.min.js index c2baebf..693e80e 100644 --- a/dist/js/social-share-kit.min.js +++ b/dist/js/social-share-kit.min.js @@ -1,8 +1,8 @@ /*! - * Social Share Kit v1.0.0 (http://socialsharekit.com) + * Social Share Kit v1.0.1 (http://socialsharekit.com) * Copyright 2015 Social Share Kit / Kaspars Sprogis. * Licensed under Creative Commons Attribution-NonCommercial 3.0 license: * https://github.com/darklow/social-share-kit/blob/master/LICENSE * --- */ -;var SocialShareKit=(function(){var d,p,f;function m(q){p=q||{};f=/(twitter|facebook|google-plus|pinterest|tumblr|vk|linkedin|email)/;l(function(){d=e(p.selector||".ssk");if(!d.length){return}k(d,function(r){if(!b(r)){return}a(r,"click",j);c(r,"click",j)})})}function l(q){if(document.readyState!="loading"){q()}else{if(document.addEventListener){document.addEventListener("DOMContentLoaded",q)}else{document.attachEvent("onreadystatechange",function(){if(document.readyState!="loading"){q()}})}}}function e(q){return document.querySelectorAll(q)}function k(s,r){for(var q=0;q=0?"&":"?")+"callback="+A;document.body.appendChild(x);return true}return{init:u}})();window.SocialShareKit=SocialShareKit; \ No newline at end of file