Преглед изворни кода

Removing redundant exception type.

Samuel Carlsson пре 9 година
родитељ
комит
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);
 
 			}