Browse Source

Renamed .empty() instances.

Mr.doob 9 years ago
parent
commit
d93ed9e963
2 changed files with 3 additions and 3 deletions
  1. 1 1
      examples/js/renderers/CanvasRenderer.js
  2. 2 2
      src/extras/helpers/BoxHelper.js

+ 1 - 1
examples/js/renderers/CanvasRenderer.js

@@ -261,7 +261,7 @@ THREE.CanvasRenderer = function ( parameters ) {
 
 	this.clear = function () {
 
-		if ( _clearBox.empty() === false ) {
+		if ( _clearBox.isEmpty() === false ) {
 
 			_clearBox.intersect( _clipBox );
 			_clearBox.expandByScalar( 2 );

+ 2 - 2
src/extras/helpers/BoxHelper.js

@@ -32,7 +32,7 @@ THREE.BoxHelper.prototype.update = ( function () {
 
 		box.setFromObject( object );
 
-		if ( box.empty() ) return;
+		if ( box.isEmpty() ) return;
 
 		var min = box.min;
 		var max = box.max;
@@ -69,6 +69,6 @@ THREE.BoxHelper.prototype.update = ( function () {
 
 		this.geometry.computeBoundingSphere();
 
-	}
+	};
 
 } )();