ES5 space-unary-ops

This commit is contained in:
Amine Ben hammou
2017-09-21 08:52:30 +00:00
parent 33572b2dc7
commit 1f9bd04308
3 changed files with 3 additions and 4 deletions

View File

@@ -25,7 +25,6 @@
"new-cap": 0, "new-cap": 0,
"no-continue": 0, "no-continue": 0,
"no-new": 0, "no-new": 0,
"space-unary-ops": 0,
"no-redeclare": 0, "no-redeclare": 0,
"no-console": 0, "no-console": 0,
"no-empty": 0, "no-empty": 0,

View File

@@ -333,7 +333,7 @@ var WysijaForm = {
}; };
// body // body
WysijaForm.getBlocks().each(function (b) { WysijaForm.getBlocks().each(function (b) {
var block_data = (typeof(b.block['save']) === 'function') ? b.block.save() : null; var block_data = (typeof (b.block['save']) === 'function') ? b.block.save() : null;
if(block_data !== null) { if(block_data !== null) {
// set block position // set block position
@@ -891,7 +891,7 @@ WysijaForm.Block = window.Class.create({
WysijaForm.toggleWidgets(); WysijaForm.toggleWidgets();
// optional callback execution after completely removing block // optional callback execution after completely removing block
if(callback !== undefined && typeof(callback) === 'function') { if(callback !== undefined && typeof (callback) === 'function') {
callback(); callback();
} }

View File

@@ -895,7 +895,7 @@ define(
for (var format in allowedDateFormats) { for (var format in allowedDateFormats) {
var testedFormat = allowedDateFormats[format]; var testedFormat = allowedDateFormats[format];
if (Moment(firstRowData, testedFormat, true).isValid()) { if (Moment(firstRowData, testedFormat, true).isValid()) {
var validationRule = (typeof(testedFormat) === 'function') ? var validationRule = (typeof (testedFormat) === 'function') ?
'datetime' : 'datetime' :
testedFormat; testedFormat;
// set validation on the column element // set validation on the column element