ES5 space-before-function-parens

This commit is contained in:
Amine Ben hammou
2017-09-21 08:35:12 +00:00
parent bf1d76a3a7
commit 680446b77e
52 changed files with 871 additions and 872 deletions

View File

@ -1,7 +1,7 @@
define([
'newsletter_editor/App',
'backbone.supermodel'
], function(App, SuperModel) {
], function (App, SuperModel) {
var Module = {};
@ -18,13 +18,13 @@ define([
// Global and available styles for access in blocks and their settings
Module._config = {};
Module.getConfig = function() { return Module._config; };
Module.setConfig = function(options) {
Module.getConfig = function () { return Module._config; };
Module.setConfig = function (options) {
Module._config = new Module.ConfigModel(options, { parse: true });
return Module._config;
};
App.on('before:start', function(App, options) {
App.on('before:start', function (App, options) {
var Application = App;
// Expose config methods globally
Application.getConfig = Module.getConfig;