crowdfavorite/wp-social — Issue #66: Get wrong user with IE - Comments (assets/social.js)
Author: 082net
Created: 2012-03-07 14:00:02+00:00
State: open

While multiple user requested sign in with FB/TW same time and when popup window closed, sometimes I got wrong other user's account. this occured with IE only I think.

PATCH:

Added 'social_idx' variable and make some variables Array

var $window = [];
var $auth_window = [];
var auth_poll = [];
var social_idx = 0;
.......
$('.social-login').click(function(e) {
social_idx = $('.social-login').index(this);
$window[social_idx] = ....
$auth_window[social_idx] = ....
auth_poll[social_idx] = ....