summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-03-20 01:12:11 -0600
committerGitHub <noreply@github.com>2017-03-20 01:12:11 -0600
commit24a8604426e8c7227021eb237e54f845af5bb18e (patch)
tree5a99a792a04d786034ede7441a878c3d4c89773e /core
parentea54afb1b6cf90aa85e99073c0e0290ecdf80d88 (diff)
parent703f2e6a61bf51e6540a57039d21acb975bd8b69 (diff)
downloadnextcloud-server-24a8604426e8c7227021eb237e54f845af5bb18e.tar.gz
nextcloud-server-24a8604426e8c7227021eb237e54f845af5bb18e.zip
Merge pull request #3942 from nextcloud/downstream-27264
Clear onpopstate handlers after unit tests
Diffstat (limited to 'core')
-rw-r--r--core/js/tests/specHelper.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/js/tests/specHelper.js b/core/js/tests/specHelper.js
index f9bdeae0d64..7897a2f2842 100644
--- a/core/js/tests/specHelper.js
+++ b/core/js/tests/specHelper.js
@@ -177,6 +177,10 @@ window.isPhantom = /phantom/i.test(navigator.userAgent);
delete($.fn.select2);
ajaxErrorStub.restore();
+
+ // reset pop state handlers
+ OC.Util.History._handlers = [];
+
});
})();