Add and fix comma-dangle rules for *.js files

[MAILPOET-1829]
This commit is contained in:
Jan Jakeš
2019-02-20 13:36:05 +01:00
committed by M. Shull
parent 61ab593dcb
commit 5c92af4881
67 changed files with 940 additions and 938 deletions

View File

@ -16,7 +16,7 @@ if (!global.document || !global.window) {
FetchExternalResources: ['script'],
ProcessExternalResources: ['script'],
MutationEvents: '2.0',
QuerySelector: false
QuerySelector: false,
});
global.window = document.defaultView;
@ -44,7 +44,7 @@ global.interact = function () {
dropzone: global.interact,
preventDefault: global.interact,
actionChecker: global.interact,
styleCursor: global.interact
styleCursor: global.interact,
};
};
global.spectrum = function () { return this; };
@ -60,7 +60,7 @@ global.stubChannel = function (EditorApplication, returnObject) {
trigger: function () {
},
on: function () {
}
},
}));
};
global.stubConfig = function (EditorApplication, opts) {
@ -86,7 +86,7 @@ global.stubImage = function (defaultWidth, defaultHeight) {
set: function (src) {
this.address = src;
this.onload();
}
},
});
};
};
@ -232,6 +232,6 @@ global.templates = {
textBlock: Handlebars.compile(jQuery('#newsletter_editor_template_text_block').html()),
textInsertion: Handlebars.compile(jQuery('#newsletter_editor_template_text_widget').html()),
textBlockSettings: Handlebars.compile(jQuery('#newsletter_editor_template_text_settings').html())
textBlockSettings: Handlebars.compile(jQuery('#newsletter_editor_template_text_settings').html()),
};
global.window.templates = global.templates;