Permalink
Browse files

Fixed VK Like widget initialisation for IE8

  • Loading branch information...
1 parent f78a7c2 commit fc3c77150f1c9119f80e916f65edc69a1f59c051 @clexit clexit committed Dec 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 extensions/socialite.vkontakte.js
@@ -69,7 +69,7 @@
settings = Socialite.settings.vkontakte;
el.className = 'vk-like';
// Vkontakte needs explicit element id
- el.id = 'vkontakte-like-' + (new Date()).getTime();
+ el.id = 'vkontakte-like-' + (new Date()).getTime() + Math.random().toString().replace('.', '-');
Socialite.copyDataAttributes(instance.el, el);
like = extendConfWithAttributes(instance.el, ['type'], settings.like);
instance.el.appendChild(el);

0 comments on commit fc3c771

Please sign in to comment.