Fix no-shadow eslint rule in ES5 files

[MAILPOET-1144]
This commit is contained in:
Pavel Dohnal
2017-11-29 14:49:19 +00:00
parent ea552508b4
commit fe0476e1c0
21 changed files with 93 additions and 95 deletions

View File

@@ -69,8 +69,8 @@ define([
return App.getConfig().get('availableStyles');
};
App.on('before:start', function (App, options) {
var Application = App;
App.on('before:start', function (BeforeStartApp, options) {
var Application = BeforeStartApp;
var body;
var globalStyles;
// Expose style methods to global application
@@ -83,9 +83,9 @@ define([
this.setGlobalStyles(globalStyles);
});
App.on('start', function (App) {
var stylesView = new Module.StylesView({ model: App.getGlobalStyles() });
App._appView.showChildView('stylesRegion', stylesView);
App.on('start', function (StartApp) {
var stylesView = new Module.StylesView({ model: StartApp.getGlobalStyles() });
StartApp._appView.showChildView('stylesRegion', stylesView);
});
return Module;