33 lines
834 B
TypeScript
Raw Normal View History

import Application from '@ember/application';
2017-01-17 19:20:46 -08:00
import Resolver from './resolver';
import loadInitializers from 'ember-load-initializers';
import config from './config/environment';
const App = Application.extend({
Resolver,
2017-01-17 19:20:46 -08:00
modulePrefix: config.modulePrefix,
2017-01-17 19:20:46 -08:00
podModulePrefix: config.podModulePrefix,
init() {
this._super(...arguments);
/**
* disable touch events in ember's event dispatcher (Chrome scrolling fix)
* @type {{touchstart: null, touchmove: null, touchend: null, touchcancel: null}}
* @link https://github.com/TryGhost/Ghost-Admin/commit/0affec39320f85c94ab54e85fb8bb4103ef41947
*/
this.customEvents = {
touchstart: null,
touchmove: null,
touchend: null,
touchcancel: null
};
}
2017-01-17 19:20:46 -08:00
});
loadInitializers(App, config.modulePrefix);
export default App;