Skip to content

Commit f34e93b

Browse files
author
Jerome Louis
committed
increased readability
1 parent ef9328f commit f34e93b

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

Gruntfile.js

100755100644
File mode changed.

dist/gridstack.js

100755100644
File mode changed.

package.json

100755100644
File mode changed.

src/gridstack.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,9 @@
10091009
this.opts.vertical_margin_unit = heightData.unit;
10101010
this.opts.vertical_margin = heightData.height;
10111011

1012-
!noUpdate && this._update_styles();
1012+
if (!noUpdate) {
1013+
this._update_styles();
1014+
}
10131015
};
10141016

10151017
GridStack.prototype.cell_height = function (val, noUpdate) {
@@ -1030,7 +1032,9 @@
10301032
this.opts.cell_height_unit = heightData.unit;
10311033
this.opts.cell_height = heightData.height;
10321034

1033-
!noUpdate && this._update_styles();
1035+
if (!noUpdate) {
1036+
this._update_styles();
1037+
}
10341038
};
10351039

10361040
GridStack.prototype.cell_width = function() {

0 commit comments

Comments
 (0)