Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixes for closure errors (const, trailing commas).

  • Loading branch information...
commit 88f5e9c38355fd92eb39db424c0d9978cc426f73 1 parent 68965f0
David Humphrey authored
View
2  c3dl/c3dlnamespace.js
@@ -105,5 +105,5 @@ var c3dl =
}
tmpparent.prototype.constructor.apply(o);
delete o.__parent;
- },
+ }
};
View
4 c3dl/constants.js
@@ -413,8 +413,8 @@ try{
Float32Array = WebGLFloatArray;
}
-const C3DL_FLOAT_ARRAY = Float32Array;
-const C3DL_UINT_ARRAY = Uint8Array;
+var C3DL_FLOAT_ARRAY = Float32Array;
+var C3DL_UINT_ARRAY = Uint8Array;
//Used to for temp vectors and matrixs needed in update loops
c3dl.mat1 = new C3DL_FLOAT_ARRAY(16);
View
6 c3dl/math/mjs.js
@@ -24,14 +24,14 @@
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
-const MJS_VERSION = 0x000000;
-const MJS_DO_ASSERT = true;
+var MJS_VERSION = 0x000000;
+var MJS_DO_ASSERT = true;
try {
WebGLFloatArray;
} catch (x) {
WebGLFloatArray = Float32Array;
}
-const MJS_FLOAT_ARRAY_TYPE = WebGLFloatArray;
+var MJS_FLOAT_ARRAY_TYPE = WebGLFloatArray;
if (MJS_DO_ASSERT) {
function MathUtils_assert(cond, msg) {
if (!cond) throw "Assertion failed: " + msg;
View
2  c3dl/particle_system/particlesystem.js
@@ -171,7 +171,7 @@ c3dl.ParticleSystem = function ()
c3dl.getRandom(this.minColor[0], this.maxColor[0]),
c3dl.getRandom(this.minColor[1], this.maxColor[1]),
c3dl.getRandom(this.minColor[2], this.maxColor[2]),
- c3dl.getRandom(this.minColor[3], this.maxColor[3]),
+ c3dl.getRandom(this.minColor[3], this.maxColor[3])
]);
this.particles[index].setSize(c3dl.getRandom(this.minSize, this.maxSize));
View
2  c3dl/scene.js
@@ -601,7 +601,7 @@ c3dl.Scene = function ()
[-1.0 * (whRatio / 2), -1.0, 0.0], // 0 - bottom left
[-1.0 * (whRatio / 2), 1.0, 0.0], // 1 - top left
[1.0 * (whRatio / 2), 1.0, 0.0], // 2 - top right
- [1.0 * (whRatio / 2), -1.0, 0.0], // 3 - bottom right
+ [1.0 * (whRatio / 2), -1.0, 0.0] // 3 - bottom right
];
var smallCanvasNormals = [
[0, 0, -1]
View
2  c3dl/shapes/cube.js
@@ -29,7 +29,7 @@ c3dl.Cube = c3dl.inherit(c3dl.Shape, function (length, width, height) {
0,-1,-1,-1,-1,0,-1,0,0,0,0,-1,
0,0,0,-1,-1,-1,-1,-1,-1,0,0,0,
0,1,1,1,1,0,1,0,0,0,0,1,
- 0,0,0,-1,-1,-1,-1,-1,-1,0,0,0,
+ 0,0,0,-1,-1,-1,-1,-1,-1,0,0,0
]);
this.primitiveSets[0].init(vertices, normals, texCoords);
this.boundingVolume.init(vertices);
Please sign in to comment.
Something went wrong with that request. Please try again.