move delete

This commit is contained in:
AJ ONeal 2017-02-10 20:41:11 -07:00
parent 3b655720c5
commit 4ca48db78b
1 changed files with 1 additions and 1 deletions

View File

@ -112,9 +112,9 @@
var tok; var tok;
function cleanup() { function cleanup() {
delete window['--oauth3-callback-' + state];
clearTimeout(tok); clearTimeout(tok);
tok = null; tok = null;
delete window['--oauth3-callback-' + state];
// this is last in case the window self-closes synchronously // this is last in case the window self-closes synchronously
// (should never happen, but that's a negotiable implementation detail) // (should never happen, but that's a negotiable implementation detail)
if (!opts.reuseWindow) { if (!opts.reuseWindow) {