瀏覽代碼

Renamed .empty() instances.

Mr.doob 9 年之前
父節點
當前提交
d93ed9e963
共有 2 個文件被更改,包括 3 次插入3 次删除
  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 () {
 	this.clear = function () {
 
 
-		if ( _clearBox.empty() === false ) {
+		if ( _clearBox.isEmpty() === false ) {
 
 
 			_clearBox.intersect( _clipBox );
 			_clearBox.intersect( _clipBox );
 			_clearBox.expandByScalar( 2 );
 			_clearBox.expandByScalar( 2 );

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

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