mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 00:32:52 +08:00
FIX: ensures mousetrap is reset with the application (#7569)
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user