Tristan VALCKE 8 years ago
parent
commit
46630ad44b

+ 5 - 1
src/core/BufferAttribute.js

@@ -34,7 +34,11 @@ function BufferAttribute( array, itemSize, normalized ) {
 
 Object.defineProperty( BufferAttribute.prototype, "needsUpdate", {
 
-	set: function(value) { if ( value === true ) this.version ++; }
+	set: function(value) { 
+		
+		if ( value === true ) this.version ++;
+	
+	}
 
 });
 

+ 5 - 1
src/core/InterleavedBuffer.js

@@ -23,7 +23,11 @@ function InterleavedBuffer( array, stride ) {
 
 Object.defineProperty( InterleavedBuffer.prototype, "needsUpdate", {
 
-	set: function(value) { if ( value === true ) this.version ++; }
+	set: function(value) { 
+		
+		if ( value === true ) this.version ++; 
+	
+	}
 
 });
 

+ 18 - 2
src/core/InterleavedBufferAttribute.js

@@ -18,9 +18,25 @@ function InterleavedBufferAttribute( interleavedBuffer, itemSize, offset, normal
 
 Object.defineProperties( InterleavedBufferAttribute.prototype, {
 
-	"count" : { get: function () { return this.data.count; } },
+	"count" : {
 
-	"array" : { get: function () { return this.data.array; } }
+		get: function () {
+
+			return this.data.count;
+
+		}
+
+	},
+
+	"array" : {
+
+		get: function () {
+
+			return this.data.array;
+
+		}
+
+	}
 
 } );
 

+ 1 - 0
src/materials/Material.js

@@ -70,6 +70,7 @@ Object.defineProperty( Material.prototype, "needsUpdate", {
 		return this._needsUpdate;
 
 	},
+	
 	set: function(value) {
 
 		if ( value === true ) this.update();

+ 1 - 2
src/math/Frustum.js

@@ -178,8 +178,7 @@ Object.assign( Frustum.prototype, {
 		};
 
 	}(),
-
-
+	
 	containsPoint: function ( point ) {
 
 		var planes = this.planes;

+ 1 - 0
src/math/Interpolant.js

@@ -256,4 +256,5 @@ Object.assign( Interpolant.prototype, {
 
 } );
 
+
 export { Interpolant };

+ 0 - 2
src/math/Ray.js

@@ -325,8 +325,6 @@ Object.assign( Ray.prototype, {
 
 	},
 
-
-
 	intersectsPlane: function ( plane ) {
 
 		// check if the ray lies on the plane first

+ 26 - 5
src/math/Vector2.js

@@ -15,18 +15,39 @@ function Vector2( x, y ) {
 Object.defineProperties( Vector2.prototype, {
 
 	"width" : {
-		get: function () { return this.x; },
-		set: function ( value ) { this.x = value; }
+		
+		get: function () { 
+			
+			return this.x; 
+		
+		},
+		
+		set: function ( value ) { 
+			
+			this.x = value; 
+		
+		}
+		
 	},
 
 	"height" : {
-		get: function () { return this.y; },
-		set: function ( value ) { this.y = value; }
+		
+		get: function () { 
+			
+			return this.y; 
+		
+		},
+		
+		set: function ( value ) { 
+			
+			this.y = value; 
+		
+		}
+		
 	}
 
 } );
 
-
 Object.assign( Vector2.prototype, {
 
 	constructor: Vector2,

+ 5 - 1
src/textures/Texture.js

@@ -61,7 +61,11 @@ Texture.DEFAULT_MAPPING = UVMapping;
 
 Object.defineProperty( Texture.prototype, "needsUpdate", {
 
-	set: function(value) { if ( value === true ) this.version ++; }
+	set: function(value) { 
+		
+		if ( value === true ) this.version ++; 
+	
+	}
 
 });