JS Hint fixed errors

This commit is contained in:
casperlamboo 2015-05-07 11:04:48 +02:00
parent 69e5534d0d
commit 624409aa30
4 changed files with 68 additions and 6 deletions

37
build/d3d.js vendored
View File

@ -1,7 +1,7 @@
/******************************************************
*
* Utils
* requires jQuery, Three.js, Clipper.js
* requires jQuery, Three.js
*
******************************************************/
@ -402,6 +402,22 @@ D3D.Box.prototype.getSystemVersions = function (callback) {
return this;
};
D3D.Box.prototype.getSketch = function (id, callback) {
//not tested
"use strict";
getAPI(this.api + "sketch/status/?id=" + id, callback);
return this;
};
D3D.Box.prototype.getSketchStatus = function (callback) {
//not tested
"use strict";
getAPI(this.api + "sketch/status", callback);
return this;
};
D3D.Box.prototype.getUpdateStatus = function (callback) {
//not tested
"use strict";
@ -410,6 +426,22 @@ D3D.Box.prototype.getUpdateStatus = function (callback) {
return this;
};
D3D.Box.prototype.setSketch = function (data, callback) {
//not tested
"use strict";
sendAPI(this.api + "sketch", data, callback);
return this;
};
D3D.Box.prototype.setSketchClear = function (callback) {
//not tested
"use strict";
sendAPI(this.api + "sketch/clear", callback);
return this;
};
D3D.Box.prototype.setUpdateDownload = function (callback) {
//not tested
"use strict";
@ -540,7 +572,6 @@ D3D.Slicer.prototype.createLines = function () {
var self = this;
function addLine (a, b) {
"use strict";
//think lookup can only be b_a, a_b is only possible when face is flipped
var index = lineLookup[a + "_" + b] || lineLookup[b + "_" + a];
@ -557,7 +588,7 @@ D3D.Slicer.prototype.createLines = function () {
}
return index;
};
}
for (var i = 0; i < this.geometry.faces.length; i ++) {
var face = this.geometry.faces[i];

2
build/d3d.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -258,6 +258,22 @@ D3D.Box.prototype.getSystemVersions = function (callback) {
return this;
};
D3D.Box.prototype.getSketch = function (id, callback) {
//not tested
"use strict";
getAPI(this.api + "sketch/status/?id=" + id, callback);
return this;
};
D3D.Box.prototype.getSketchStatus = function (callback) {
//not tested
"use strict";
getAPI(this.api + "sketch/status", callback);
return this;
};
D3D.Box.prototype.getUpdateStatus = function (callback) {
//not tested
"use strict";
@ -266,6 +282,22 @@ D3D.Box.prototype.getUpdateStatus = function (callback) {
return this;
};
D3D.Box.prototype.setSketch = function (data, callback) {
//not tested
"use strict";
sendAPI(this.api + "sketch", data, callback);
return this;
};
D3D.Box.prototype.setSketchClear = function (callback) {
//not tested
"use strict";
sendAPI(this.api + "sketch/clear", callback);
return this;
};
D3D.Box.prototype.setUpdateDownload = function (callback) {
//not tested
"use strict";

View File

@ -41,7 +41,6 @@ D3D.Slicer.prototype.createLines = function () {
var self = this;
function addLine (a, b) {
"use strict";
//think lookup can only be b_a, a_b is only possible when face is flipped
var index = lineLookup[a + "_" + b] || lineLookup[b + "_" + a];
@ -58,7 +57,7 @@ D3D.Slicer.prototype.createLines = function () {
}
return index;
};
}
for (var i = 0; i < this.geometry.faces.length; i ++) {
var face = this.geometry.faces[i];