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,
"no-continue": 0,
"no-new": 0,
"space-unary-ops": 0,
"no-redeclare": 0,
"no-console": 0,
"no-empty": 0,

View File

@@ -333,7 +333,7 @@ var WysijaForm = {
};
// body
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) {
// set block position
@@ -891,7 +891,7 @@ WysijaForm.Block = window.Class.create({
WysijaForm.toggleWidgets();
// optional callback execution after completely removing block
if(callback !== undefined && typeof(callback) === 'function') {
if(callback !== undefined && typeof (callback) === 'function') {
callback();
}

View File

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