소스 검색

Removing redundant exception type.

Samuel Carlsson 10 년 전
부모
커밋
aaee8e179d
1개의 변경된 파일1개의 추가작업 그리고 6개의 파일을 삭제
  1. 1 6
      examples/js/loaders/OBJLoader.js

+ 1 - 6
examples/js/loaders/OBJLoader.js

@@ -2,11 +2,6 @@
  * @author mrdoob / http://mrdoob.com/
  */
 
-THREE.ParseException = function(message) {
-   this.message = message;
-   this.name = "ParseException";
-}
-
 THREE.OBJLoader = function ( manager ) {
 
 	this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager;
@@ -339,7 +334,7 @@ THREE.OBJLoader.prototype = {
 
 			} else {
 
-                throw new THREE.ParseException("Unexpected line: " + line);
+                throw new Error("Unexpected line: " + line);
 
 			}
 

粤ICP备19079148号