From f34e93baac7a1bed6409d4ca9996179dd93e8c82 Mon Sep 17 00:00:00 2001 From: Jerome Louis Date: Mon, 15 Feb 2016 11:32:39 +0100 Subject: [PATCH] increased readability --- Gruntfile.js | 0 dist/gridstack.js | 0 package.json | 0 src/gridstack.js | 8 ++++++-- 4 files changed, 6 insertions(+), 2 deletions(-) mode change 100755 => 100644 Gruntfile.js mode change 100755 => 100644 dist/gridstack.js mode change 100755 => 100644 package.json diff --git a/Gruntfile.js b/Gruntfile.js old mode 100755 new mode 100644 diff --git a/dist/gridstack.js b/dist/gridstack.js old mode 100755 new mode 100644 diff --git a/package.json b/package.json old mode 100755 new mode 100644 diff --git a/src/gridstack.js b/src/gridstack.js index 71e56b5..e045226 100644 --- a/src/gridstack.js +++ b/src/gridstack.js @@ -1009,7 +1009,9 @@ this.opts.vertical_margin_unit = heightData.unit; this.opts.vertical_margin = heightData.height; - !noUpdate && this._update_styles(); + if (!noUpdate) { + this._update_styles(); + } }; GridStack.prototype.cell_height = function (val, noUpdate) { @@ -1030,7 +1032,9 @@ this.opts.cell_height_unit = heightData.unit; this.opts.cell_height = heightData.height; - !noUpdate && this._update_styles(); + if (!noUpdate) { + this._update_styles(); + } }; GridStack.prototype.cell_width = function() {