Browse Source

Clean up.

linbingquan 5 years ago
parent
commit
d6228db454
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/cameras/OrthographicCamera.js

+ 2 - 2
src/cameras/OrthographicCamera.js

@@ -7,6 +7,8 @@ class OrthographicCamera extends Camera {
 
 
 		super();
 		super();
 
 
+		Object.defineProperty( this, 'isOrthographicCamera', { value: true } );
+
 		this.type = 'OrthographicCamera';
 		this.type = 'OrthographicCamera';
 
 
 		this.zoom = 1;
 		this.zoom = 1;
@@ -132,6 +134,4 @@ class OrthographicCamera extends Camera {
 
 
 }
 }
 
 
-OrthographicCamera.prototype.isOrthographicCamera = true;
-
 export { OrthographicCamera };
 export { OrthographicCamera };