FIX: ensures mousetrap is reset with the application (#7569)

This commit is contained in:
Joffrey JAFFEUX 2019-05-20 10:45:31 +02:00 committed by GitHub
parent 3c1fa3910f
commit 0ddfeb9c64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,4 @@
/*global Mousetrap:true*/
import { buildResolver } from "discourse-common/resolver";
import {
default as computed,
@ -15,6 +16,12 @@ const Discourse = Ember.Application.extend({
paste: "paste"
},
reset() {
this._super(...arguments);
Mousetrap.reset();
},
getURL(url) {
if (!url) return url;