Skip to content

Commit

Permalink
Add missing semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
brason committed Apr 6, 2015
1 parent 67849f9 commit eb68622
Show file tree
Hide file tree
Showing 126 changed files with 314 additions and 314 deletions.
24 changes: 12 additions & 12 deletions examples/canvas_geometry_birds.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,21 +55,21 @@

_goal = target;

}
};

this.setAvoidWalls = function ( value ) {

_avoidWalls = value;

}
};

this.setWorldSize = function ( width, height, depth ) {

_width = width;
_height = height;
_depth = depth;

}
};

this.run = function ( boids ) {

Expand Down Expand Up @@ -120,7 +120,7 @@

this.move();

}
};

this.flock = function ( boids ) {

Expand All @@ -134,7 +134,7 @@
_acceleration.add( this.cohesion( boids ) );
_acceleration.add( this.separation( boids ) );

}
};

this.move = function () {

Expand All @@ -151,7 +151,7 @@
this.position.add( this.velocity );
_acceleration.set( 0, 0, 0 );

}
};

this.checkBounds = function () {

Expand All @@ -162,7 +162,7 @@
if ( this.position.z > _depth ) this.position.z = - _depth;
if ( this.position.z < - _depth ) this.position.z = _depth;

}
};

//

Expand All @@ -177,7 +177,7 @@

return steer;

}
};

this.repulse = function ( target ) {

Expand All @@ -194,7 +194,7 @@

}

}
};

this.reach = function ( target, amount ) {

Expand All @@ -205,7 +205,7 @@

return steer;

}
};

this.alignment = function ( boids ) {

Expand Down Expand Up @@ -245,7 +245,7 @@

return velSum;

}
};

this.cohesion = function ( boids ) {

Expand Down Expand Up @@ -288,7 +288,7 @@

return steer;

}
};

this.separation = function ( boids ) {

Expand Down
4 changes: 2 additions & 2 deletions examples/canvas_interactive_particles.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
context.arc( 0, 0, 0.5, 0, PI2, true );
context.fill();

}
};

var programStroke = function ( context ) {

Expand All @@ -47,7 +47,7 @@
context.arc( 0, 0, 0.5, 0, PI2, true );
context.stroke();

}
};

var INTERSECTED;

Expand Down
2 changes: 1 addition & 1 deletion examples/canvas_lights_pointlights.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
context.arc( 0, 0, 0.5, 0, PI2, true );
context.fill();

}
};

var sprite = new THREE.Sprite( new THREE.SpriteCanvasMaterial( { color: 0xff0040, program: program } ) );
light1.add( sprite );
Expand Down
4 changes: 2 additions & 2 deletions examples/canvas_materials.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
context.arc( 0, 0, 0.5, 0, PI2, true );
context.fill();

}
};

// Lights

Expand Down Expand Up @@ -167,7 +167,7 @@
function loadImage( path ) {

var image = document.createElement( 'img' );
var texture = new THREE.Texture( image, THREE.UVMapping )
var texture = new THREE.Texture( image, THREE.UVMapping );

image.onload = function () { texture.needsUpdate = true; };
image.src = path;
Expand Down
2 changes: 1 addition & 1 deletion examples/canvas_materials_video.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@

particle = new THREE.Sprite( material );
particle.position.x = ix * separation - ( ( amountx * separation ) / 2 );
particle.position.y = -153
particle.position.y = -153;
particle.position.z = iy * separation - ( ( amounty * separation ) / 2 );
particle.scale.x = particle.scale.y = 2;
scene.add( particle );
Expand Down
2 changes: 1 addition & 1 deletion examples/canvas_particles_random.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
context.arc( 0, 0, 0.5, 0, PI2, true );
context.fill();

}
};

group = new THREE.Group();
scene.add( group );
Expand Down
2 changes: 1 addition & 1 deletion examples/canvas_particles_shapes.html
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
context.lineWidth = 0.5; //0.05
context.stroke();

}
};

var setTargetParticle = function() {

Expand Down
2 changes: 1 addition & 1 deletion examples/canvas_particles_sprites.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
var particle = this instanceof THREE.Sprite ? this : particle;
var delay = delay !== undefined ? delay : 0;

particle.position.set( 0, 0, 0 )
particle.position.set( 0, 0, 0 );
particle.scale.x = particle.scale.y = Math.random() * 32 + 16;

new TWEEN.Tween( particle )
Expand Down
2 changes: 1 addition & 1 deletion examples/css3d_sprites.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
var object = new THREE.CSS3DSprite( image.cloneNode() );
object.position.x = Math.random() * 4000 - 2000,
object.position.y = Math.random() * 4000 - 2000,
object.position.z = Math.random() * 4000 - 2000
object.position.z = Math.random() * 4000 - 2000;
scene.add( object );

objects.push( object );
Expand Down
2 changes: 1 addition & 1 deletion examples/js/AudioObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ THREE.AudioObject = function ( url, volume, playbackRate, loop ) {
_this.source.buffer = _this.context.createBuffer( request.response, true );
_this.source.noteOn( 0 );

}
};

request.send();

Expand Down
8 changes: 4 additions & 4 deletions examples/js/BlendCharacter.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ THREE.BlendCharacter = function () {

}

}
};

this.play = function(animName, weight) {

Expand Down Expand Up @@ -231,13 +231,13 @@ THREE.BlendCharacter = function () {
this.weightSchedule.length = 0;
this.warpSchedule.length = 0;

}
};

this.showSkeleton = function( boolean ) {

this.skeletonHelper.visible = boolean;

}
};

this.showModel = function( boolean ) {

Expand Down Expand Up @@ -266,5 +266,5 @@ THREE.BlendCharacter.prototype.getForward = function() {

return forward;
}
}
};

20 changes: 10 additions & 10 deletions examples/js/BlendCharacterGui.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function BlendCharacterGui(animations) {
playback.open();
blending.open();

}
};

var getAnimationData = function() {

Expand All @@ -94,7 +94,7 @@ function BlendCharacterGui(animations) {
}

};
}
};

controls.start = function() {

Expand Down Expand Up @@ -144,7 +144,7 @@ function BlendCharacterGui(animations) {
fadeData.detail.time = controls[ "Crossfade Time" ];

window.dispatchEvent( new CustomEvent( 'crossfade', fadeData ) );
}
};

controls.warp = function( from, to ) {

Expand All @@ -154,7 +154,7 @@ function BlendCharacterGui(animations) {
warpData.detail.time = controls[ "Crossfade Time" ];

window.dispatchEvent( new CustomEvent( 'warp', warpData ) );
}
};

controls['idle to walk'] = function() {

Expand All @@ -180,21 +180,21 @@ function BlendCharacterGui(animations) {
detail: {
shouldLock: controls['Lock Camera']
}
}
};

window.dispatchEvent( new CustomEvent( 'toggle-lock-camera', data ) );
}
};

controls.showSkeletonChanged = function() {

var data = {
detail: {
shouldShow: controls['Show Skeleton']
}
}
};

window.dispatchEvent( new CustomEvent( 'toggle-show-skeleton', data ) );
}
};


controls.showModelChanged = function() {
Expand All @@ -203,10 +203,10 @@ function BlendCharacterGui(animations) {
detail: {
shouldShow: controls['Show Model']
}
}
};

window.dispatchEvent( new CustomEvent( 'toggle-show-model', data ) );
}
};


init.call(this);
Expand Down
4 changes: 2 additions & 2 deletions examples/js/Cloth.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Particle.prototype.integrate = function(timesq) {
this.position = newPos;

this.a.set(0, 0, 0);
}
};


var diff = new THREE.Vector3();
Expand Down Expand Up @@ -243,7 +243,7 @@ function simulate(time) {


ballPosition.z = -Math.sin(Date.now() / 600) * 90 ; //+ 40;
ballPosition.x = Math.cos(Date.now() / 400) * 70
ballPosition.x = Math.cos(Date.now() / 400) * 70;

if (sphere.visible)
for (particles = cloth.particles, i = 0, il = particles.length
Expand Down
2 changes: 1 addition & 1 deletion examples/js/CurveExtras.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ var scaleTo = function(x, y, t) {
var r = y - x;
return t * r + x;

}
};

THREE.Curves.FigureEightPolynomialKnot = THREE.Curve.create(

Expand Down
2 changes: 1 addition & 1 deletion examples/js/ImprovedNoise.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ var ImprovedNoise = function () {

}
}
}
};
4 changes: 2 additions & 2 deletions examples/js/MD2Character.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ THREE.MD2Character = function () {

this.loadCounter = config.weapons.length * 2 + config.skins.length + 1;

var weaponsTextures = []
var weaponsTextures = [];
for ( var i = 0; i < config.weapons.length; i ++ ) weaponsTextures[ i ] = config.weapons[ i ][ 1 ];

// SKINS
Expand Down Expand Up @@ -79,7 +79,7 @@ THREE.MD2Character = function () {

}

}
};

for ( var i = 0; i < config.weapons.length; i ++ ) {

Expand Down
4 changes: 2 additions & 2 deletions examples/js/MD2CharacterComplex.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ THREE.MD2CharacterComplex = function () {

this.loadCounter = config.weapons.length * 2 + config.skins.length + 1;

var weaponsTextures = []
var weaponsTextures = [];
for ( var i = 0; i < config.weapons.length; i ++ ) weaponsTextures[ i ] = config.weapons[ i ][ 1 ];

// SKINS
Expand Down Expand Up @@ -193,7 +193,7 @@ THREE.MD2CharacterComplex = function () {

}

}
};

for ( var i = 0; i < config.weapons.length; i ++ ) {

Expand Down
2 changes: 1 addition & 1 deletion examples/js/MarchingCubes.js
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ THREE.edgeTable = new Int32Array([
0xe90, 0xf99, 0xc93, 0xd9a, 0xa96, 0xb9f, 0x895, 0x99c,
0x69c, 0x795, 0x49f, 0x596, 0x29a, 0x393, 0x99, 0x190,
0xf00, 0xe09, 0xd03, 0xc0a, 0xb06, 0xa0f, 0x905, 0x80c,
0x70c, 0x605, 0x50f, 0x406, 0x30a, 0x203, 0x109, 0x0 ])
0x70c, 0x605, 0x50f, 0x406, 0x30a, 0x203, 0x109, 0x0 ]);

THREE.triTable = new Int32Array([
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
Expand Down
2 changes: 1 addition & 1 deletion examples/js/SimplexNoise.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ SimplexNoise.prototype.dot = function(g, x, y) {

SimplexNoise.prototype.dot3 = function(g, x, y, z) {
return g[0] * x + g[1] * y + g[2] * z;
}
};

SimplexNoise.prototype.dot4 = function(g, x, y, z, w) {
return g[0] * x + g[1] * y + g[2] * z + g[3] * w;
Expand Down
Loading

0 comments on commit eb68622

Please sign in to comment.