Why the ref doesn't close?
(function(context) {
Code: Select all
var Login = {};
Login.loginFacebook = function() {
var url = Recipe_Settings['face_url'];
var ref = window.open('[url=http://apache.org]http://apache.org[/url]', '_blank', 'location=no');
ref.addEventListener('loadstart', this.getAccessToken);
};
Login.getAccessToken = function(event) {
alert(event.url);
ref.close();
};
context.Login = Login;
})(this);