mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 02:52:44 +08:00
FIX: ensures mousetrap is reset with the application (#7569)
This commit is contained in:
parent
3c1fa3910f
commit
0ddfeb9c64
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user