Browse Source

CSS3DRenderer: Clean up.

Mr.doob 10 years ago
parent
commit
6935047df8
1 changed files with 8 additions and 10 deletions
  1. 8 10
      examples/js/renderers/CSS3DRenderer.js

+ 8 - 10
examples/js/renderers/CSS3DRenderer.js

@@ -69,7 +69,14 @@ THREE.CSS3DRenderer = function () {
 
 	domElement.appendChild( cameraElement );
 
-	this.setClearColor = function () {
+	this.setClearColor = function () {};
+
+	this.getSize = function() {
+
+		return {
+			width: _width,
+			height: _height
+		};
 
 	};
 
@@ -88,15 +95,6 @@ THREE.CSS3DRenderer = function () {
 		cameraElement.style.height = height + 'px';
 
 	};
-	
-	/**
-	 * Returns the renderers pixel size as descriptive object
-	 * 
-	 * @returns {Object} The size object with keys 'width' and 'height'
-	 */
-	this.getSize = function() {
-		return {width: _width, height: _height};
-	};
 
 	var epsilon = function ( value ) {