FIX: puts focus-event at application level (#7568)

Also attempts to use simpler and newer APIs
This commit is contained in:
Joffrey JAFFEUX
2019-05-20 13:48:03 +02:00
committed by GitHub
parent b788948985
commit bc8c77723e
3 changed files with 38 additions and 69 deletions

View File

@ -4,10 +4,11 @@ import {
default as computed,
observes
} from "ember-addons/ember-computed-decorators";
import FocusEvent from "discourse-common/mixins/focus-event";
const _pluginCallbacks = [];
const Discourse = Ember.Application.extend({
const Discourse = Ember.Application.extend(FocusEvent, {
rootElement: "#main",
_docTitle: document.title,
RAW_TEMPLATES: {},