You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been scratching my head for a while on this. Finally found a stack-trace for this. In my environment I am using Angular w/o any jQuery. In my compressed file, you can see the stack trace here: https://cloudup.com/cYEL-fFQe9O
Here's an expanded code block:
f.prototype.setTimer = function(a, b, c) {
return c && this.settings.clearTimeout(c),
this.settings.setTimeout(function() {
a()
}
, b)
}
,
f.prototype.setAccessTokenInactiveTimer = function(a) {
this.accessTokenInactiveTimer = this.setTimer(this.settings.eraseAccessToken, a, this.accessTokenInactiveTimer)
}
It appears seems that fn() doesn't exist at the time it runs.
Any ideas? I literally have thousands of these bug reports for this little line. It doesn't affect anything per say, but it may be the reason that chrome sessions don't always expire gracefully.
The text was updated successfully, but these errors were encountered:
I think the problem is due to the eraseAccessToken being passed around in a variable so that when it's called the this context is incorrect. See this jsFiddle for an example: http://jsfiddle.net/90164595/1/
If that's correct then the fix would be to replace this.eraseAccessToken in my previous comment with
this.eraseAccessToken.bind(this);
But bind is only supported by IE 9+. If that's a problem then you can try this:
// In a line above, save a reference to "this"
var self = this;
// Now replace this.eraseAccessToken with this line
function(){ self.eraseAccessToken() };
@justincy @jimmyz
I've been scratching my head for a while on this. Finally found a stack-trace for this. In my environment I am using Angular w/o any jQuery. In my compressed file, you can see the stack trace here:
https://cloudup.com/cYEL-fFQe9O
Here's an expanded code block:
It appears seems that fn() doesn't exist at the time it runs.
It correlates to this line of code:
familysearch-javascript-sdk/src/helpers.js
Lines 80 to 87 in e014974
Any ideas? I literally have thousands of these bug reports for this little line. It doesn't affect anything per say, but it may be the reason that chrome sessions don't always expire gracefully.
The text was updated successfully, but these errors were encountered: