Clear onpopstate handlers after unit tests

Fixes issue when running Karma tests in Firefox.

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Vincent Petry 2017-02-27 10:06:53 +01:00 committed by Morris Jobke
parent 528a903a7b
commit 703f2e6a61
No known key found for this signature in database
GPG key ID: 9CE5ED29E7FCD38A

View file

@ -177,6 +177,10 @@ window.isPhantom = /phantom/i.test(navigator.userAgent);
delete($.fn.select2);
ajaxErrorStub.restore();
// reset pop state handlers
OC.Util.History._handlers = [];
});
})();