yomotsu %!s(int64=8) %!d(string=hai) anos
pai
achega
64e916fd28
Modificáronse 1 ficheiros con 5 adicións e 5 borrados
  1. 5 5
      examples/js/renderers/CSS3DRenderer.js

+ 5 - 5
examples/js/renderers/CSS3DRenderer.js

@@ -144,7 +144,7 @@ THREE.CSS3DRenderer = function () {
 			epsilon( elements[ 15 ] ) +
 			epsilon( elements[ 15 ] ) +
 		')';
 		')';
 
 
-	};
+	}
 
 
 	var getDistanceToSquared = function () {
 	var getDistanceToSquared = function () {
 
 
@@ -229,9 +229,9 @@ THREE.CSS3DRenderer = function () {
 
 
 		}
 		}
 
 
-	};
+	}
 
 
-	this.zOrder = function ( scene ) {
+	function zOrder ( scene ) {
 
 
 		var order = Object.keys( cache.objects ).sort( function ( a, b ) {
 		var order = Object.keys( cache.objects ).sort( function ( a, b ) {
 
 
@@ -280,14 +280,14 @@ THREE.CSS3DRenderer = function () {
 		camera.matrixWorldInverse.getInverse( camera.matrixWorld );
 		camera.matrixWorldInverse.getInverse( camera.matrixWorld );
 
 
 		var style = 'translate3d(-50%,-50%,0) ' +
 		var style = 'translate3d(-50%,-50%,0) ' +
-					'translate3d(' + _widthHalf + 'px,' + _heightHalf + 'px, ' + fov  + 'px) ' +
+		            'translate3d(' + _widthHalf + 'px,' + _heightHalf + 'px, ' + fov  + 'px) ' +
 		            getCameraCSSMatrix( camera.matrixWorldInverse );
 		            getCameraCSSMatrix( camera.matrixWorldInverse );
 
 
 		renderObject( scene, camera, style );
 		renderObject( scene, camera, style );
 
 
 		if ( isIE ) {
 		if ( isIE ) {
 
 
-			this.zOrder( scene );
+			zOrder( scene );
 
 
 		}
 		}