Permalink
Browse files

Merge pull request #49 from clexit/patch-1

Fixed VK Like widget initialisation for IE8
  • Loading branch information...
2 parents 1f83693 + fc3c771 commit b6fcee003500c3f2231ab3a11cb061d69cef36a7 @dbushell dbushell committed Dec 4, 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 b6fcee0

Please sign in to comment.