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:
parent
528a903a7b
commit
703f2e6a61
1 changed files with 4 additions and 0 deletions
|
@ -177,6 +177,10 @@ window.isPhantom = /phantom/i.test(navigator.userAgent);
|
|||
delete($.fn.select2);
|
||||
|
||||
ajaxErrorStub.restore();
|
||||
|
||||
// reset pop state handlers
|
||||
OC.Util.History._handlers = [];
|
||||
|
||||
});
|
||||
})();
|
||||
|
||||
|
|
Loading…
Reference in a new issue