style fixes for eslint

This commit is contained in:
Liv Erickson 2018-04-10 09:18:54 -07:00
parent c66badc53c
commit 6c15577653

View file

@ -73,7 +73,9 @@ Grid = function (opts) {
updateGrid();
};
that.getVisible = function () { return that.visible; };
that.getVisible = function() {
return that.visible;
};
that.setVisible = function(visible, noUpdate) {
that.visible = visible;
updateGrid();
@ -125,7 +127,7 @@ Grid = function (opts) {
position.z = Math.round(position.z / spacing) * spacing;
return Vec3.sum(Vec3.sum(position, Vec3.multiplyVbyV(registration, dimensions)), origin);
}
};
that.snapToSpacing = function(delta, majorOnly) {
if (!snapToGrid) {
@ -223,7 +225,7 @@ Grid = function (opts) {
that.addListener = function (callback) {
that.onUpdate = callback;
}
};
Script.scriptEnding.connect(cleanup);
updateGrid();
@ -255,7 +257,7 @@ GridTool = function (opts) {
try {
data = JSON.parse(data);
} catch (e) {
print("gridTool.js: Error parsing JSON: " + e.name + " data " + data)
print("gridTool.js: Error parsing JSON: " + e.name + " data " + data);
return;
}
@ -284,11 +286,11 @@ GridTool = function (opts) {
that.addListener = function(callback) {
listeners.push(callback);
}
};
that.setVisible = function(visible) {
webView.setVisible(visible);
}
};
return that;
};