Fix App and Application argument naming

This commit is contained in:
Tautvidas Sipavičius
2017-08-24 14:17:32 +03:00
parent 9c0d9c31f8
commit 01f41b9798

View File

@@ -349,12 +349,13 @@ define([
}; };
App.on('before:start', function(App, options) { App.on('before:start', function(App, options) {
Application.save = Module.save; //saveAndProvidePromise; var Application = App;
Application.save = Module.save;
Application.getChannel().on('autoSave', Module.autoSave); Application.getChannel().on('autoSave', Module.autoSave);
window.onbeforeunload = Module.beforeExitWithUnsavedChanges; window.onbeforeunload = Module.beforeExitWithUnsavedChanges;
Application.getChannel().reply('save', App.save); Application.getChannel().reply('save', Application.save);
}); });
App.on('start', function(App, options) { App.on('start', function(App, options) {