Browse Source

Set prototype.constructor for all derived classes

Fixes #5570
Elisée Maurer 10 years ago
parent
commit
ecd0ddd1a1
100 changed files with 143 additions and 5 deletions
  1. 1 0
      editor/js/libs/ui.editor.js
  2. 15 0
      editor/js/libs/ui.js
  3. 2 0
      editor/js/libs/ui.three.js
  4. 1 0
      examples/js/AudioObject.js
  5. 1 0
      examples/js/BlendCharacter.js
  6. 1 0
      examples/js/MarchingCubes.js
  7. 1 0
      examples/js/Mirror.js
  8. 4 0
      examples/js/ParametricGeometries.js
  9. 1 0
      examples/js/WaterShader.js
  10. 1 0
      examples/js/cameras/CombinedCamera.js
  11. 1 0
      examples/js/controls/EditorControls.js
  12. 1 0
      examples/js/controls/OrbitControls.js
  13. 1 0
      examples/js/controls/OrthographicTrackballControls.js
  14. 1 0
      examples/js/controls/TrackballControls.js
  15. 7 0
      examples/js/controls/TransformControls.js
  16. 1 0
      examples/js/curves/NURBSCurve.js
  17. 1 0
      examples/js/geometries/ConvexGeometry.js
  18. 1 0
      examples/js/geometries/DecalGeometry.js
  19. 2 0
      examples/js/loaders/BinaryLoader.js
  20. 3 0
      examples/js/loaders/ColladaLoader.js
  21. 1 0
      examples/js/loaders/DDSLoader.js
  22. 1 0
      examples/js/loaders/PVRLoader.js
  23. 2 0
      examples/js/loaders/ctm/CTMLoader.js
  24. 1 0
      examples/js/renderers/CSS2DRenderer.js
  25. 2 0
      examples/js/renderers/CSS3DRenderer.js
  26. 2 0
      examples/js/renderers/CSS3DStereoRenderer.js
  27. 1 0
      examples/js/renderers/CanvasRenderer.js
  28. 1 0
      examples/js/renderers/SVGRenderer.js
  29. 1 0
      examples/js/wip/CircleTypedGeometry.js
  30. 1 0
      examples/js/wip/IndexedTypedGeometry.js
  31. 1 0
      examples/js/wip/PlaneTypedGeometry.js
  32. 1 0
      examples/js/wip/ProxyGeometry.js
  33. 1 0
      examples/js/wip/TypedGeometry.js
  34. 1 0
      examples/js/wip/benchmark/BoxGeometry2.js
  35. 2 1
      examples/js/wip/benchmark/Geometry2.js
  36. 2 1
      examples/js/wip/benchmark/Geometry3.js
  37. 3 0
      examples/js/wip/benchmark/Geometry4.js
  38. 3 0
      examples/js/wip/benchmark/Geometry5.js
  39. 3 0
      examples/js/wip/benchmark/Geometry5b.js
  40. 2 1
      examples/js/wip/benchmark/IndexedGeometry3.js
  41. 3 0
      examples/js/wip/benchmark/IndexedGeometry5.js
  42. 1 0
      examples/js/wip/benchmark/IndexedPlaneGeometry5.js
  43. 1 0
      examples/js/wip/benchmark/PlaneGeometry.js
  44. 1 0
      examples/js/wip/benchmark/PlaneGeometry2.js
  45. 1 0
      examples/js/wip/benchmark/PlaneGeometry2b.js
  46. 1 0
      examples/js/wip/benchmark/PlaneGeometry3.js
  47. 1 0
      examples/js/wip/benchmark/PlaneGeometry5.js
  48. 2 1
      examples/js/wip/benchmark/PlaneGeometry6.js
  49. 2 1
      examples/js/wip/benchmark/PlaneGeometry99.js
  50. 1 0
      examples/js/wip/proxies/MultiColor.js
  51. 1 0
      examples/js/wip/proxies/MultiVector3.js
  52. 1 0
      examples/js/wip/proxies/ProxyColor.js
  53. 1 0
      examples/js/wip/proxies/ProxyFace3.js
  54. 1 0
      examples/js/wip/proxies/ProxyVector2.js
  55. 1 0
      examples/js/wip/proxies/ProxyVector3.js
  56. 1 0
      examples/js/wip/proxies/ProxyVector4.js
  57. 1 0
      examples/obj/Bird.js
  58. 1 0
      examples/obj/Qrcode.js
  59. 1 0
      src/cameras/Camera.js
  60. 1 0
      src/cameras/CubeCamera.js
  61. 1 0
      src/cameras/OrthographicCamera.js
  62. 1 0
      src/cameras/PerspectiveCamera.js
  63. 1 0
      src/extras/audio/Audio.js
  64. 1 0
      src/extras/audio/AudioListener.js
  65. 1 0
      src/extras/core/Curve.js
  66. 1 0
      src/extras/core/CurvePath.js
  67. 1 0
      src/extras/core/Gyroscope.js
  68. 1 0
      src/extras/core/Path.js
  69. 1 0
      src/extras/core/Shape.js
  70. 1 0
      src/extras/curves/ArcCurve.js
  71. 1 0
      src/extras/curves/CubicBezierCurve.js
  72. 1 0
      src/extras/curves/EllipseCurve.js
  73. 1 0
      src/extras/curves/LineCurve.js
  74. 1 0
      src/extras/curves/QuadraticBezierCurve.js
  75. 1 0
      src/extras/curves/SplineCurve.js
  76. 1 0
      src/extras/geometries/BoxGeometry.js
  77. 1 0
      src/extras/geometries/CircleGeometry.js
  78. 1 0
      src/extras/geometries/CylinderGeometry.js
  79. 1 0
      src/extras/geometries/DodecahedronGeometry.js
  80. 1 0
      src/extras/geometries/ExtrudeGeometry.js
  81. 1 0
      src/extras/geometries/IcosahedronGeometry.js
  82. 1 0
      src/extras/geometries/LatheGeometry.js
  83. 1 0
      src/extras/geometries/OctahedronGeometry.js
  84. 1 0
      src/extras/geometries/ParametricGeometry.js
  85. 1 0
      src/extras/geometries/PlaneBufferGeometry.js
  86. 1 0
      src/extras/geometries/PlaneGeometry.js
  87. 1 0
      src/extras/geometries/PolyhedronGeometry.js
  88. 1 0
      src/extras/geometries/RingGeometry.js
  89. 1 0
      src/extras/geometries/ShapeGeometry.js
  90. 1 0
      src/extras/geometries/SphereGeometry.js
  91. 1 0
      src/extras/geometries/TetrahedronGeometry.js
  92. 1 0
      src/extras/geometries/TextGeometry.js
  93. 1 0
      src/extras/geometries/TorusGeometry.js
  94. 1 0
      src/extras/geometries/TorusKnotGeometry.js
  95. 1 0
      src/extras/geometries/TubeGeometry.js
  96. 1 0
      src/extras/helpers/ArrowHelper.js
  97. 1 0
      src/extras/helpers/AxisHelper.js
  98. 1 0
      src/extras/helpers/BoundingBoxHelper.js
  99. 1 0
      src/extras/helpers/BoxHelper.js
  100. 1 0
      src/extras/helpers/CameraHelper.js

+ 1 - 0
editor/js/libs/ui.editor.js

@@ -30,6 +30,7 @@ UI.CodeEditor = function ( mode ) {
 };
 
 UI.CodeEditor.prototype = Object.create( UI.Element.prototype );
+UI.CodeEditor.prototype.constructor = UI.CodeEditor;
 
 UI.CodeEditor.prototype.setWidth = function ( value ) {
 

+ 15 - 0
editor/js/libs/ui.js

@@ -105,6 +105,7 @@ UI.Panel = function () {
 };
 
 UI.Panel.prototype = Object.create( UI.Element.prototype );
+UI.Panel.prototype.constructor = UI.Panel;
 
 UI.Panel.prototype.add = function () {
 
@@ -194,6 +195,7 @@ UI.CollapsiblePanel = function () {
 };
 
 UI.CollapsiblePanel.prototype = Object.create( UI.Panel.prototype );
+UI.CollapsiblePanel.prototype.constructor = UI.CollapsiblePanel;
 
 UI.CollapsiblePanel.prototype.addStatic = function () {
 
@@ -303,6 +305,7 @@ UI.Text = function ( text ) {
 };
 
 UI.Text.prototype = Object.create( UI.Element.prototype );
+UI.Text.prototype.constructor = UI.Text;
 
 UI.Text.prototype.setValue = function ( value ) {
 
@@ -343,6 +346,7 @@ UI.Input = function () {
 };
 
 UI.Input.prototype = Object.create( UI.Element.prototype );
+UI.Input.prototype.constructor = UI.Input;
 
 UI.Input.prototype.getValue = function () {
 
@@ -398,6 +402,7 @@ UI.TextArea = function () {
 };
 
 UI.TextArea.prototype = Object.create( UI.Element.prototype );
+UI.TextArea.prototype.constructor = UI.TextArea;
 
 UI.TextArea.prototype.getValue = function () {
 
@@ -436,6 +441,7 @@ UI.Select = function () {
 };
 
 UI.Select.prototype = Object.create( UI.Element.prototype );
+UI.Select.prototype.constructor = UI.Select;
 
 UI.Select.prototype.setMultiple = function ( boolean ) {
 
@@ -552,6 +558,7 @@ UI.FancySelect = function () {
 };
 
 UI.FancySelect.prototype = Object.create( UI.Element.prototype );
+UI.FancySelect.prototype.constructor = UI.FancySelect;
 
 UI.FancySelect.prototype.setOptions = function ( options ) {
 
@@ -662,6 +669,7 @@ UI.Checkbox = function ( boolean ) {
 };
 
 UI.Checkbox.prototype = Object.create( UI.Element.prototype );
+UI.Checkbox.prototype.constructor = UI.Checkbox;
 
 UI.Checkbox.prototype.getValue = function () {
 
@@ -712,6 +720,7 @@ UI.Color = function () {
 };
 
 UI.Color.prototype = Object.create( UI.Element.prototype );
+UI.Color.prototype.constructor = UI.Color;
 
 UI.Color.prototype.getValue = function () {
 
@@ -871,6 +880,7 @@ UI.Number = function ( number ) {
 };
 
 UI.Number.prototype = Object.create( UI.Element.prototype );
+UI.Number.prototype.constructor = UI.Number;
 
 UI.Number.prototype.getValue = function () {
 
@@ -1034,6 +1044,7 @@ UI.Integer = function ( number ) {
 };
 
 UI.Integer.prototype = Object.create( UI.Element.prototype );
+UI.Integer.prototype.constructor = UI.Integer;
 
 UI.Integer.prototype.getValue = function () {
 
@@ -1079,6 +1090,7 @@ UI.Break = function () {
 };
 
 UI.Break.prototype = Object.create( UI.Element.prototype );
+UI.Break.prototype.constructor = UI.Break;
 
 
 // HorizontalRule
@@ -1097,6 +1109,7 @@ UI.HorizontalRule = function () {
 };
 
 UI.HorizontalRule.prototype = Object.create( UI.Element.prototype );
+UI.HorizontalRule.prototype.constructor = UI.HorizontalRule;
 
 
 // Button
@@ -1118,6 +1131,7 @@ UI.Button = function ( value ) {
 };
 
 UI.Button.prototype = Object.create( UI.Element.prototype );
+UI.Button.prototype.constructor = UI.Button;
 
 UI.Button.prototype.setLabel = function ( value ) {
 
@@ -1164,6 +1178,7 @@ UI.Dialog = function ( value ) {
 };
 
 UI.Dialog.prototype = Object.create( UI.Panel.prototype );
+UI.Dialog.prototype.constructor = UI.Dialog;
 
 UI.Dialog.prototype.showModal = function () {
 

+ 2 - 0
editor/js/libs/ui.three.js

@@ -83,6 +83,7 @@ UI.Texture = function () {
 };
 
 UI.Texture.prototype = Object.create( UI.Element.prototype );
+UI.Texture.prototype.constructor = UI.Texture;
 
 UI.Texture.prototype.getValue = function () {
 
@@ -217,6 +218,7 @@ UI.CubeTexture = function () {
 };
 
 UI.CubeTexture.prototype = Object.create( UI.Element.prototype );
+UI.CubeTexture.prototype.constructor = UI.CubeTexture;
 
 UI.CubeTexture.prototype.getValue = function () {
 

+ 1 - 0
examples/js/AudioObject.js

@@ -163,6 +163,7 @@ THREE.AudioObject = function ( url, volume, playbackRate, loop ) {
 };
 
 THREE.AudioObject.prototype = Object.create( THREE.Object3D.prototype );
+THREE.AudioObject.prototype.constructor = THREE.AudioObject;
 
 THREE.AudioObject.prototype.context = null;
 THREE.AudioObject.prototype.type = null;

+ 1 - 0
examples/js/BlendCharacter.js

@@ -249,6 +249,7 @@ THREE.BlendCharacter = function () {
 
 
 THREE.BlendCharacter.prototype = Object.create( THREE.SkinnedMesh.prototype );
+THREE.BlendCharacter.prototype.constructor = THREE.BlendCharacter;
 
 THREE.BlendCharacter.prototype.getForward = function() {
 

+ 1 - 0
examples/js/MarchingCubes.js

@@ -751,6 +751,7 @@ THREE.MarchingCubes = function ( resolution, material, enableUvs, enableColors )
 };
 
 THREE.MarchingCubes.prototype = Object.create( THREE.ImmediateRenderObject.prototype );
+THREE.MarchingCubes.prototype.constructor = THREE.MarchingCubes;
 
 
 /////////////////////////////////////

+ 1 - 0
examples/js/Mirror.js

@@ -142,6 +142,7 @@ THREE.Mirror = function ( renderer, camera, options ) {
 };
 
 THREE.Mirror.prototype = Object.create( THREE.Object3D.prototype );
+THREE.Mirror.prototype.constructor = THREE.Mirror;
 
 THREE.Mirror.prototype.renderWithMirror = function ( otherMirror ) {
 

+ 4 - 0
examples/js/ParametricGeometries.js

@@ -150,6 +150,7 @@ THREE.ParametricGeometries.TubeGeometry = function(path, segments, radius, segme
 };
 
 THREE.ParametricGeometries.TubeGeometry.prototype = Object.create( THREE.Geometry.prototype );
+THREE.ParametricGeometries.TubeGeometry.prototype.constructor = THREE.ParametricGeometries.TubeGeometry;
 
 
  /*********************************************
@@ -200,6 +201,7 @@ THREE.ParametricGeometries.TorusKnotGeometry = function ( radius, tube, segments
 };
 
 THREE.ParametricGeometries.TorusKnotGeometry.prototype = Object.create( THREE.Geometry.prototype );
+THREE.ParametricGeometries.TorusKnotGeometry.prototype.constructor = THREE.ParametricGeometries.TorusKnotGeometry;
 
 
  /*********************************************
@@ -226,6 +228,7 @@ THREE.ParametricGeometries.SphereGeometry = function(size, u, v) {
 };
 
 THREE.ParametricGeometries.SphereGeometry.prototype = Object.create( THREE.Geometry.prototype );
+THREE.ParametricGeometries.SphereGeometry.prototype.constructor = THREE.ParametricGeometries.SphereGeometry;
 
 
  /*********************************************
@@ -250,3 +253,4 @@ THREE.ParametricGeometries.PlaneGeometry = function(width, depth, segmentsWidth,
 };
 
 THREE.ParametricGeometries.PlaneGeometry.prototype = Object.create( THREE.Geometry.prototype );
+THREE.ParametricGeometries.PlaneGeometry.prototype.constructor = THREE.ParametricGeometries.PlaneGeometry;

+ 1 - 0
examples/js/WaterShader.js

@@ -185,6 +185,7 @@ THREE.Water = function ( renderer, camera, scene, options ) {
 };
 
 THREE.Water.prototype = Object.create( THREE.Mirror.prototype );
+THREE.Water.prototype.constructor = THREE.Water;
 
 
 THREE.Water.prototype.updateTextureMatrix = function () {

+ 1 - 0
examples/js/cameras/CombinedCamera.js

@@ -34,6 +34,7 @@ THREE.CombinedCamera = function ( width, height, fov, near, far, orthoNear, orth
 };
 
 THREE.CombinedCamera.prototype = Object.create( THREE.Camera.prototype );
+THREE.CombinedCamera.prototype.constructor = THREE.CombinedCamera;
 
 THREE.CombinedCamera.prototype.toPerspective = function () {
 

+ 1 - 0
examples/js/controls/EditorControls.js

@@ -299,3 +299,4 @@ THREE.EditorControls = function ( object, domElement ) {
 };
 
 THREE.EditorControls.prototype = Object.create( THREE.EventDispatcher.prototype );
+THREE.EditorControls.prototype.constructor = THREE.EditorControls;

+ 1 - 0
examples/js/controls/OrbitControls.js

@@ -672,3 +672,4 @@ THREE.OrbitControls = function ( object, domElement ) {
 };
 
 THREE.OrbitControls.prototype = Object.create( THREE.EventDispatcher.prototype );
+THREE.OrbitControls.prototype.constructor = THREE.OrbitControls;

+ 1 - 0
examples/js/controls/OrthographicTrackballControls.js

@@ -533,3 +533,4 @@ THREE.OrthographicTrackballControls = function ( object, domElement ) {
 };
 
 THREE.OrthographicTrackballControls.prototype = Object.create( THREE.EventDispatcher.prototype );
+THREE.OrthographicTrackballControls.prototype.constructor = THREE.OrthographicTrackballControls;

+ 1 - 0
examples/js/controls/TrackballControls.js

@@ -609,3 +609,4 @@ THREE.TrackballControls = function ( object, domElement ) {
 };
 
 THREE.TrackballControls.prototype = Object.create( THREE.EventDispatcher.prototype );
+THREE.TrackballControls.prototype.constructor = THREE.TrackballControls;

+ 7 - 0
examples/js/controls/TransformControls.js

@@ -40,6 +40,7 @@
 	};
 
 	GizmoMaterial.prototype = Object.create( THREE.MeshBasicMaterial.prototype );
+	GizmoMaterial.prototype.constructor = GizmoMaterial;
 
 	var GizmoLineMaterial = function ( parameters ) {
 
@@ -74,6 +75,7 @@
 	};
 
 	GizmoLineMaterial.prototype = Object.create( THREE.LineBasicMaterial.prototype );
+	GizmoLineMaterial.prototype.constructor = GizmoLineMaterial;
 
 	THREE.TransformGizmo = function () {
 
@@ -194,6 +196,7 @@
 	};
 
 	THREE.TransformGizmo.prototype = Object.create( THREE.Object3D.prototype );
+	THREE.TransformGizmo.prototype.constructor = THREE.TransformGizmo;
 
 	THREE.TransformGizmo.prototype.update = function ( rotation, eye ) {
 
@@ -320,6 +323,7 @@
 	};
 
 	THREE.TransformGizmoTranslate.prototype = Object.create( THREE.TransformGizmo.prototype );
+	THREE.TransformGizmoTranslate.prototype.constructor = THREE.TransformGizmoTranslate;
 
 	THREE.TransformGizmoRotate = function () {
 
@@ -446,6 +450,7 @@
 	};
 
 	THREE.TransformGizmoRotate.prototype = Object.create( THREE.TransformGizmo.prototype );
+	THREE.TransformGizmoRotate.prototype.constructor = THREE.TransformGizmoRotate;
 
 	THREE.TransformGizmoScale = function () {
 
@@ -532,6 +537,7 @@
 	};
 
 	THREE.TransformGizmoScale.prototype = Object.create( THREE.TransformGizmo.prototype );
+	THREE.TransformGizmoScale.prototype.constructor = THREE.TransformGizmoScale;
 
 	THREE.TransformControls = function ( camera, domElement ) {
 
@@ -989,5 +995,6 @@
 	};
 
 	THREE.TransformControls.prototype = Object.create( THREE.Object3D.prototype );
+	THREE.TransformControls.prototype.constructor = THREE.TransformControls;
 
 }());

+ 1 - 0
examples/js/curves/NURBSCurve.js

@@ -27,6 +27,7 @@ THREE.NURBSCurve = function ( degree, knots /* array of reals */, controlPoints
 
 
 THREE.NURBSCurve.prototype = Object.create( THREE.Curve.prototype );
+THREE.NURBSCurve.prototype.constructor = THREE.NURBSCurve;
 
 
 THREE.NURBSCurve.prototype.getPoint = function ( t ) {

+ 1 - 0
examples/js/geometries/ConvexGeometry.js

@@ -219,3 +219,4 @@ THREE.ConvexGeometry = function( vertices ) {
 };
 
 THREE.ConvexGeometry.prototype = Object.create( THREE.Geometry.prototype );
+THREE.ConvexGeometry.prototype.constructor = THREE.ConvexGeometry;

+ 1 - 0
examples/js/geometries/DecalGeometry.js

@@ -261,3 +261,4 @@ THREE.DecalGeometry = function( mesh, position, rotation, dimensions, check ) {
 }
 
 THREE.DecalGeometry.prototype = Object.create( THREE.Geometry.prototype );
+THREE.DecalGeometry.prototype.constructor = THREE.DecalGeometry;

+ 2 - 0
examples/js/loaders/BinaryLoader.js

@@ -9,6 +9,7 @@ THREE.BinaryLoader = function ( showStatus ) {
 };
 
 THREE.BinaryLoader.prototype = Object.create( THREE.Loader.prototype );
+THREE.BinaryLoader.prototype.constructor = THREE.BinaryLoader;
 
 // Load models generated by slim OBJ converter with BINARY option (converter_obj_three_slim.py -t binary)
 //  - binary models consist of two files: JS and BIN
@@ -739,6 +740,7 @@ THREE.BinaryLoader.prototype.createBinModel = function ( data, callback, texture
 	};
 
 	Model.prototype = Object.create( THREE.Geometry.prototype );
+	Model.prototype.constructor = Model;
 
 	var geometry = new Model( texturePath );
 	var materials = this.initMaterials( jsonMaterials, texturePath );

+ 3 - 0
examples/js/loaders/ColladaLoader.js

@@ -3174,6 +3174,7 @@ THREE.ColladaLoader = function () {
 	};
 
 	Polylist.prototype = Object.create( Polygons.prototype );
+	Polylist.prototype.constructor = Polylist;
 
 	function LineStrips() {
 
@@ -3184,6 +3185,7 @@ THREE.ColladaLoader = function () {
 	};
 
 	LineStrips.prototype = Object.create( Polygons.prototype );
+	LineStrips.prototype.constructor = LineStrips;
 
 	function Triangles () {
 
@@ -3194,6 +3196,7 @@ THREE.ColladaLoader = function () {
 	};
 
 	Triangles.prototype = Object.create( Polygons.prototype );
+	Triangles.prototype.constructor = Triangles;
 
 	function Accessor() {
 

+ 1 - 0
examples/js/loaders/DDSLoader.js

@@ -7,6 +7,7 @@ THREE.DDSLoader = function () {
 };
 
 THREE.DDSLoader.prototype = Object.create( THREE.CompressedTextureLoader.prototype );
+THREE.DDSLoader.prototype.constructor = THREE.DDSLoader;
 
 THREE.DDSLoader.parse = function ( buffer, loadMipmaps ) {
 

+ 1 - 0
examples/js/loaders/PVRLoader.js

@@ -14,6 +14,7 @@ THREE.PVRLoader = function () {
 };
 
 THREE.PVRLoader.prototype = Object.create( THREE.CompressedTextureLoader.prototype );
+THREE.PVRLoader.prototype.constructor = THREE.PVRLoader;
 
 
 THREE.PVRLoader.parse = function ( buffer, loadMipmaps ) {

+ 2 - 0
examples/js/loaders/ctm/CTMLoader.js

@@ -15,6 +15,7 @@ THREE.CTMLoader = function ( showStatus ) {
 };
 
 THREE.CTMLoader.prototype = Object.create( THREE.Loader.prototype );
+THREE.CTMLoader.prototype.constructor = THREE.CTMLoader;
 
 // Load multiple CTM parts defined in JSON
 
@@ -242,6 +243,7 @@ THREE.CTMLoader.prototype.createModel = function ( file, callback ) {
 	}
 
 	Model.prototype = Object.create( THREE.BufferGeometry.prototype );
+	Model.prototype.constructor = Model;
 
 	var geometry = new Model();
 

+ 1 - 0
examples/js/renderers/CSS2DRenderer.js

@@ -22,6 +22,7 @@ THREE.CSS2DObject = function ( element ) {
 };
 
 THREE.CSS2DObject.prototype = Object.create( THREE.Object3D.prototype );
+THREE.CSS2DObject.prototype.constructor = THREE.CSS2DObject;
 
 //
 

+ 2 - 0
examples/js/renderers/CSS3DRenderer.js

@@ -23,6 +23,7 @@ THREE.CSS3DObject = function ( element ) {
 };
 
 THREE.CSS3DObject.prototype = Object.create( THREE.Object3D.prototype );
+THREE.CSS3DObject.prototype.constructor = THREE.CSS3DObject;
 
 THREE.CSS3DSprite = function ( element ) {
 
@@ -31,6 +32,7 @@ THREE.CSS3DSprite = function ( element ) {
 };
 
 THREE.CSS3DSprite.prototype = Object.create( THREE.CSS3DObject.prototype );
+THREE.CSS3DSprite.prototype.constructor = THREE.CSS3DSprite;
 
 //
 

+ 2 - 0
examples/js/renderers/CSS3DStereoRenderer.js

@@ -31,6 +31,7 @@ THREE.CSS3DObject = function ( element ) {
 };
 
 THREE.CSS3DObject.prototype = Object.create( THREE.Object3D.prototype );
+THREE.CSS3DObject.prototype.constructor = THREE.CSS3DObject;
 
 THREE.CSS3DSprite = function ( element ) {
 
@@ -39,6 +40,7 @@ THREE.CSS3DSprite = function ( element ) {
 };
 
 THREE.CSS3DSprite.prototype = Object.create( THREE.CSS3DObject.prototype );
+THREE.CSS3DSprite.prototype.constructor = THREE.CSS3DSprite;
 
 //
 

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

@@ -16,6 +16,7 @@ THREE.SpriteCanvasMaterial = function ( parameters ) {
 };
 
 THREE.SpriteCanvasMaterial.prototype = Object.create( THREE.Material.prototype );
+THREE.SpriteCanvasMaterial.prototype.constructor = THREE.SpriteCanvasMaterial;
 
 THREE.SpriteCanvasMaterial.prototype.clone = function () {
 

+ 1 - 0
examples/js/renderers/SVGRenderer.js

@@ -11,6 +11,7 @@ THREE.SVGObject = function ( node ) {
 };
 
 THREE.SVGObject.prototype = Object.create( THREE.Object3D.prototype );
+THREE.SVGObject.prototype.constructor = THREE.SVGObject;
 
 THREE.SVGRenderer = function () {
 

+ 1 - 0
examples/js/wip/CircleTypedGeometry.js

@@ -73,3 +73,4 @@ THREE.CircleTypedGeometry = function ( radius, segments, thetaStart, thetaLength
 };
 
 THREE.CircleTypedGeometry.prototype = Object.create( THREE.IndexedTypedGeometry.prototype );
+THREE.CircleTypedGeometry.prototype.constructor = THREE.CircleTypedGeometry;

+ 1 - 0
examples/js/wip/IndexedTypedGeometry.js

@@ -9,6 +9,7 @@ THREE.IndexedTypedGeometry = function () {
 };
 
 THREE.IndexedTypedGeometry.prototype = Object.create( THREE.BufferGeometry.prototype );
+THREE.IndexedTypedGeometry.prototype.constructor = THREE.IndexedTypedGeometry;
 
 THREE.IndexedTypedGeometry.prototype.setArrays = function ( indices, vertices, normals, uvs ) {
 

+ 1 - 0
examples/js/wip/PlaneTypedGeometry.js

@@ -89,3 +89,4 @@ THREE.PlaneTypedGeometry = function ( width, height, widthSegments, heightSegmen
 };
 
 THREE.PlaneTypedGeometry.prototype = Object.create( THREE.IndexedTypedGeometry.prototype );
+THREE.PlaneTypedGeometry.prototype.constructor = THREE.PlaneTypedGeometry;

+ 1 - 0
examples/js/wip/ProxyGeometry.js

@@ -21,6 +21,7 @@ THREE.ProxyGeometry = function ( ) {
 };
 
 THREE.ProxyGeometry.prototype = Object.create( THREE.IndexedGeometry2.prototype );
+THREE.ProxyGeometry.prototype.constructor = THREE.ProxyGeometry;
 
 Object.defineProperties(THREE.ProxyGeometry.prototype, {
 	vertices: { 

+ 1 - 0
examples/js/wip/TypedGeometry.js

@@ -19,6 +19,7 @@ THREE.TypedGeometry = function ( size ) {
 };
 
 THREE.TypedGeometry.prototype = Object.create( THREE.BufferGeometry.prototype );
+THREE.TypedGeometry.prototype.constructor = THREE.TypedGeometry;
 
 THREE.TypedGeometry.prototype.setArrays = function ( vertices, normals, uvs ) {
 

+ 1 - 0
examples/js/wip/benchmark/BoxGeometry2.js

@@ -111,3 +111,4 @@ THREE.BoxGeometry2 = function ( width, height, depth, widthSegments, heightSegme
 };
 
 THREE.BoxGeometry2.prototype = Object.create( THREE.Geometry2.prototype );
+THREE.BoxGeometry2.prototype.constructor = THREE.BoxGeometry2;

+ 2 - 1
examples/js/wip/benchmark/Geometry2.js

@@ -16,4 +16,5 @@ THREE.Geometry2 = function ( size ) {
 
 };
 
-THREE.Geometry2.prototype = Object.create( THREE.BufferGeometry.prototype );
+THREE.Geometry2.prototype = Object.create( THREE.BufferGeometry.prototype );
+THREE.Geometry2.prototype.constructor = THREE.Geometry2;

+ 2 - 1
examples/js/wip/benchmark/Geometry3.js

@@ -28,4 +28,5 @@ THREE.Geometry3 = function ( size ) {
 
 };
 
-THREE.Geometry3.prototype = Object.create( THREE.BufferGeometry.prototype );
+THREE.Geometry3.prototype = Object.create( THREE.BufferGeometry.prototype );
+THREE.Geometry3.prototype.constructor = THREE.Geometry3;

+ 3 - 0
examples/js/wip/benchmark/Geometry4.js

@@ -16,6 +16,7 @@ THREE.Geometry4 = function ( size ) {
 
 };
 THREE.Geometry4.prototype = Object.create( THREE.BufferGeometry.prototype );
+THREE.Geometry4.prototype.constructor = THREE.Geometry4;
 
 THREE.VectorArrayProxy = function(attribute) {
 
@@ -66,6 +67,7 @@ THREE.Vector2Proxy = function(subarray) {
 
 }
 THREE.Vector2Proxy.prototype = Object.create( THREE.Vector2.prototype );
+THREE.Vector2Proxy.prototype.constructor = THREE.Vector2Proxy;
 Object.defineProperty(THREE.Vector2Proxy.prototype, 'x', { get: function() { return this.subarray[0]; }, set: function(v) { this.subarray[0] = v; } });
 Object.defineProperty(THREE.Vector2Proxy.prototype, 'y', { get: function() { return this.subarray[1]; }, set: function(v) { this.subarray[1] = v; } });
 
@@ -76,6 +78,7 @@ THREE.Vector3Proxy = function(subarray) {
 
 }
 THREE.Vector3Proxy.prototype = Object.create( THREE.Vector3.prototype );
+THREE.Vector3Proxy.prototype.constructor = THREE.Vector3Proxy;
 
 Object.defineProperty(THREE.Vector3Proxy.prototype, 'x', { get: function() { return this.subarray[0]; }, set: function(v) { this.subarray[0] = v; } });
 Object.defineProperty(THREE.Vector3Proxy.prototype, 'y', { get: function() { return this.subarray[1]; }, set: function(v) { this.subarray[1] = v; } });

+ 3 - 0
examples/js/wip/benchmark/Geometry5.js

@@ -29,6 +29,7 @@ THREE.Geometry5 = function ( size ) {
 };
 
 THREE.Geometry5.prototype = Object.create( THREE.BufferGeometry.prototype );
+THREE.Geometry5.prototype.constructor = THREE.Geometry5;
 
 THREE.TypedVector2 = function ( array, offset ) {
 
@@ -38,6 +39,7 @@ THREE.TypedVector2 = function ( array, offset ) {
 };
 
 THREE.TypedVector2.prototype = Object.create( THREE.Vector2.prototype );
+THREE.TypedVector2.prototype.constructor = THREE.TypedVector2;
 
 Object.defineProperties( THREE.TypedVector2.prototype, {
 	'x': {
@@ -58,6 +60,7 @@ THREE.TypedVector3 = function ( array, offset ) {
 };
 
 THREE.TypedVector3.prototype = Object.create( THREE.Vector3.prototype );
+THREE.TypedVector3.prototype.constructor = THREE.TypedVector3;
 
 Object.defineProperties( THREE.TypedVector3.prototype, {
 	'x': {

+ 3 - 0
examples/js/wip/benchmark/Geometry5b.js

@@ -27,6 +27,7 @@ THREE.Geometry5b = function ( bufferGeometry ) {
 };
 
 THREE.Geometry5b.prototype = Object.create( THREE.BufferGeometry.prototype );
+THREE.Geometry5b.prototype.constructor = THREE.Geometry5b;
 
 THREE.TypedVector2 = function ( array, offset ) {
 
@@ -36,6 +37,7 @@ THREE.TypedVector2 = function ( array, offset ) {
 };
 
 THREE.TypedVector2.prototype = Object.create( THREE.Vector2.prototype );
+THREE.TypedVector2.prototype.constructor = THREE.TypedVector2;
 
 Object.defineProperties( THREE.TypedVector2.prototype, {
 	'x': {
@@ -56,6 +58,7 @@ THREE.TypedVector3 = function ( array, offset ) {
 };
 
 THREE.TypedVector3.prototype = Object.create( THREE.Vector3.prototype );
+THREE.TypedVector3.prototype.constructor = THREE.TypedVector3;
 
 Object.defineProperties( THREE.TypedVector3.prototype, {
 	'x': {

+ 2 - 1
examples/js/wip/benchmark/IndexedGeometry3.js

@@ -30,4 +30,5 @@ THREE.IndexedGeometry3 = function ( indices, size ) {
 
 };
 
-THREE.Geometry3.prototype = Object.create( THREE.BufferGeometry.prototype );
+THREE.Geometry3.prototype = Object.create( THREE.BufferGeometry.prototype );
+THREE.Geometry3.prototype.constructor = THREE.Geometry3;

+ 3 - 0
examples/js/wip/benchmark/IndexedGeometry5.js

@@ -31,6 +31,7 @@ THREE.IndexedGeometry5 = function ( indices, size ) {
 };
 
 THREE.IndexedGeometry5.prototype = Object.create( THREE.BufferGeometry.prototype );
+THREE.IndexedGeometry5.prototype.constructor = THREE.IndexedGeometry5;
 
 THREE.TypedVector2 = function ( array, offset ) {
 
@@ -40,6 +41,7 @@ THREE.TypedVector2 = function ( array, offset ) {
 };
 
 THREE.TypedVector2.prototype = Object.create( THREE.Vector2.prototype );
+THREE.TypedVector2.prototype.constructor = THREE.TypedVector2;
 
 Object.defineProperties( THREE.TypedVector2.prototype, {
 	'x': {
@@ -60,6 +62,7 @@ THREE.TypedVector3 = function ( array, offset ) {
 };
 
 THREE.TypedVector3.prototype = Object.create( THREE.Vector3.prototype );
+THREE.TypedVector3.prototype.constructor = THREE.TypedVector3;
 
 Object.defineProperties( THREE.TypedVector3.prototype, {
 	'x': {

+ 1 - 0
examples/js/wip/benchmark/IndexedPlaneGeometry5.js

@@ -80,3 +80,4 @@ THREE.IndexedPlaneGeometry5 = function ( width, height, widthSegments, heightSeg
 };
 
 THREE.IndexedPlaneGeometry5.prototype = Object.create( THREE.IndexedGeometry5.prototype );
+THREE.IndexedPlaneGeometry5.prototype.constructor = THREE.IndexedPlaneGeometry5;

+ 1 - 0
examples/js/wip/benchmark/PlaneGeometry.js

@@ -76,3 +76,4 @@ THREE.PlaneGeometry = function ( width, height, widthSegments, heightSegments )
 };
 
 THREE.PlaneGeometry.prototype = Object.create( THREE.Geometry.prototype );
+THREE.PlaneGeometry.prototype.constructor = THREE.PlaneGeometry;

+ 1 - 0
examples/js/wip/benchmark/PlaneGeometry2.js

@@ -73,3 +73,4 @@ THREE.PlaneGeometry2 = function ( width, height, widthSegments, heightSegments )
 };
 
 THREE.PlaneGeometry2.prototype = Object.create( THREE.Geometry2.prototype );
+THREE.PlaneGeometry2.prototype.constructor = THREE.PlaneGeometry2;

+ 1 - 0
examples/js/wip/benchmark/PlaneGeometry2b.js

@@ -63,3 +63,4 @@ THREE.PlaneGeometry2b = function ( width, height, widthSegments, heightSegments
 };
 
 THREE.PlaneGeometry2b.prototype = Object.create( THREE.Geometry2.prototype );
+THREE.PlaneGeometry2b.prototype.constructor = THREE.PlaneGeometry2b;

+ 1 - 0
examples/js/wip/benchmark/PlaneGeometry3.js

@@ -73,3 +73,4 @@ THREE.PlaneGeometry3 = function ( width, height, widthSegments, heightSegments )
 };
 
 THREE.PlaneGeometry3.prototype = Object.create( THREE.Geometry3.prototype );
+THREE.PlaneGeometry3.prototype.constructor = THREE.PlaneGeometry3;

+ 1 - 0
examples/js/wip/benchmark/PlaneGeometry5.js

@@ -63,3 +63,4 @@ THREE.PlaneGeometry5 = function ( width, height, widthSegments, heightSegments )
 };
 
 THREE.PlaneGeometry5.prototype = Object.create( THREE.Geometry5.prototype );
+THREE.PlaneGeometry5.prototype.constructor = THREE.PlaneGeometry5;

+ 2 - 1
examples/js/wip/benchmark/PlaneGeometry6.js

@@ -26,4 +26,5 @@ THREE.PlaneGeometry6 = function ( width, height, widthSegments, heightSegments )
 
 };
 
-THREE.PlaneGeometry6.prototype = Object.create( THREE.PlaneBufferGeometry.prototype );
+THREE.PlaneGeometry6.prototype = Object.create( THREE.PlaneBufferGeometry.prototype );
+THREE.PlaneGeometry6.prototype.constructor = THREE.PlaneGeometry6;

+ 2 - 1
examples/js/wip/benchmark/PlaneGeometry99.js

@@ -89,4 +89,5 @@ THREE.PlaneGeometry99 = function ( width, height, widthSegments, heightSegments
 
 };
 
-THREE.PlaneGeometry99.prototype = Object.create( THREE.Geometry99.prototype );
+THREE.PlaneGeometry99.prototype = Object.create( THREE.Geometry99.prototype );
+THREE.PlaneGeometry99.prototype.constructor = THREE.PlaneGeometry99;

+ 1 - 0
examples/js/wip/proxies/MultiColor.js

@@ -8,6 +8,7 @@ THREE.MultiColor = function(links) {
 }
 
 THREE.MultiColor.prototype = Object.create( THREE.Color.prototype );
+THREE.MultiColor.prototype.constructor = THREE.MultiColor;
 
 THREE.MultiColor.prototype.setAll = function(axis, value) {
 

+ 1 - 0
examples/js/wip/proxies/MultiVector3.js

@@ -8,6 +8,7 @@ THREE.MultiVector3 = function(links) {
 }
 
 THREE.MultiVector3.prototype = Object.create( THREE.Vector3.prototype );
+THREE.MultiVector3.prototype.constructor = THREE.MultiVector3;
 
 THREE.MultiVector3.prototype.setAll = function(axis, value) {
 

+ 1 - 0
examples/js/wip/proxies/ProxyColor.js

@@ -11,6 +11,7 @@ THREE.ProxyColor = function ( array, offset ) {
 }
 
 THREE.ProxyColor.prototype = Object.create( THREE.Color.prototype );
+THREE.ProxyColor.prototype.constructor = THREE.ProxyColor;
 
 Object.defineProperties( THREE.ProxyColor.prototype, {
 	'r': {

+ 1 - 0
examples/js/wip/proxies/ProxyFace3.js

@@ -18,6 +18,7 @@ THREE.ProxyFace3 = function ( array, offset, vertexNormals, vertexColors, vertex
 }
 
 THREE.ProxyFace3.prototype = Object.create( THREE.Face3.prototype );
+THREE.ProxyFace3.prototype.constructor = THREE.ProxyFace3;
 
 Object.defineProperties( THREE.ProxyFace3.prototype, {
 	'a': {

+ 1 - 0
examples/js/wip/proxies/ProxyVector2.js

@@ -11,6 +11,7 @@ THREE.ProxyVector2 = function ( array, offset ) {
 };
 
 THREE.ProxyVector2.prototype = Object.create( THREE.Vector2.prototype );
+THREE.ProxyVector2.prototype.constructor = THREE.ProxyVector2;
 
 Object.defineProperties( THREE.ProxyVector2.prototype, {
 	'x': {

+ 1 - 0
examples/js/wip/proxies/ProxyVector3.js

@@ -11,6 +11,7 @@ THREE.ProxyVector3 = function ( array, offset ) {
 };
 
 THREE.ProxyVector3.prototype = Object.create( THREE.Vector3.prototype );
+THREE.ProxyVector3.prototype.constructor = THREE.ProxyVector3;
 
 Object.defineProperties( THREE.ProxyVector3.prototype, {
 	'x': {

+ 1 - 0
examples/js/wip/proxies/ProxyVector4.js

@@ -11,6 +11,7 @@ THREE.ProxyVector4 = function ( array, offset ) {
 };
 
 THREE.ProxyVector4.prototype = Object.create( THREE.Vector4.prototype );
+THREE.ProxyVector4.prototype.constructor = THREE.ProxyVector4;
 
 Object.defineProperties( THREE.ProxyVector4.prototype, {
 	'x': {

+ 1 - 0
examples/obj/Bird.js

@@ -37,3 +37,4 @@ var Bird = function () {
 }
 
 Bird.prototype = Object.create( THREE.Geometry.prototype );
+Bird.prototype.constructor = Bird;

+ 1 - 0
examples/obj/Qrcode.js

@@ -1458,3 +1458,4 @@ var Qrcode = function () {
 }
 
 Qrcode.prototype = Object.create( THREE.Geometry.prototype );
+Qrcode.prototype.constructor = Qrcode;

+ 1 - 0
src/cameras/Camera.js

@@ -16,6 +16,7 @@ THREE.Camera = function () {
 };
 
 THREE.Camera.prototype = Object.create( THREE.Object3D.prototype );
+THREE.Camera.prototype.constructor = THREE.Camera;
 
 THREE.Camera.prototype.getWorldDirection = function () {
 

+ 1 - 0
src/cameras/CubeCamera.js

@@ -77,3 +77,4 @@ THREE.CubeCamera = function ( near, far, cubeResolution ) {
 };
 
 THREE.CubeCamera.prototype = Object.create( THREE.Object3D.prototype );
+THREE.CubeCamera.prototype.constructor = THREE.CubeCamera;

+ 1 - 0
src/cameras/OrthographicCamera.js

@@ -23,6 +23,7 @@ THREE.OrthographicCamera = function ( left, right, top, bottom, near, far ) {
 };
 
 THREE.OrthographicCamera.prototype = Object.create( THREE.Camera.prototype );
+THREE.OrthographicCamera.prototype.constructor = THREE.OrthographicCamera;
 
 THREE.OrthographicCamera.prototype.updateProjectionMatrix = function () {
 

+ 1 - 0
src/cameras/PerspectiveCamera.js

@@ -22,6 +22,7 @@ THREE.PerspectiveCamera = function ( fov, aspect, near, far ) {
 };
 
 THREE.PerspectiveCamera.prototype = Object.create( THREE.Camera.prototype );
+THREE.PerspectiveCamera.prototype.constructor = THREE.PerspectiveCamera;
 
 
 /**

+ 1 - 0
src/extras/audio/Audio.js

@@ -20,6 +20,7 @@ THREE.Audio = function ( listener ) {
 };
 
 THREE.Audio.prototype = Object.create( THREE.Object3D.prototype );
+THREE.Audio.prototype.constructor = THREE.Audio;
 
 THREE.Audio.prototype.load = function ( file ) {
 

+ 1 - 0
src/extras/audio/AudioListener.js

@@ -13,6 +13,7 @@ THREE.AudioListener = function () {
 };
 
 THREE.AudioListener.prototype = Object.create( THREE.Object3D.prototype );
+THREE.AudioListener.prototype.constructor = THREE.AudioListener;
 
 THREE.AudioListener.prototype.updateMatrixWorld = ( function () {
 

+ 1 - 0
src/extras/core/Curve.js

@@ -328,6 +328,7 @@ THREE.Curve.Utils = {
 THREE.Curve.create = function ( constructor, getPointFunc ) {
 
 	constructor.prototype = Object.create( THREE.Curve.prototype );
+	constructor.prototype.constructor = constructor;
 	constructor.prototype.getPoint = getPointFunc;
 
 	return constructor;

+ 1 - 0
src/extras/core/CurvePath.js

@@ -17,6 +17,7 @@ THREE.CurvePath = function () {
 };
 
 THREE.CurvePath.prototype = Object.create( THREE.Curve.prototype );
+THREE.CurvePath.prototype.constructor = THREE.CurvePath;
 
 THREE.CurvePath.prototype.add = function ( curve ) {
 

+ 1 - 0
src/extras/core/Gyroscope.js

@@ -9,6 +9,7 @@ THREE.Gyroscope = function () {
 };
 
 THREE.Gyroscope.prototype = Object.create( THREE.Object3D.prototype );
+THREE.Gyroscope.prototype.constructor = THREE.Gyroscope;
 
 THREE.Gyroscope.prototype.updateMatrixWorld = ( function () {
 

+ 1 - 0
src/extras/core/Path.js

@@ -19,6 +19,7 @@ THREE.Path = function ( points ) {
 };
 
 THREE.Path.prototype = Object.create( THREE.CurvePath.prototype );
+THREE.Path.prototype.constructor = THREE.Path;
 
 THREE.PathActions = {
 

+ 1 - 0
src/extras/core/Shape.js

@@ -17,6 +17,7 @@ THREE.Shape = function () {
 };
 
 THREE.Shape.prototype = Object.create( THREE.Path.prototype );
+THREE.Shape.prototype.constructor = THREE.Shape;
 
 // Convenience method to return ExtrudeGeometry
 

+ 1 - 0
src/extras/curves/ArcCurve.js

@@ -8,3 +8,4 @@ THREE.ArcCurve = function ( aX, aY, aRadius, aStartAngle, aEndAngle, aClockwise
 };
 
 THREE.ArcCurve.prototype = Object.create( THREE.EllipseCurve.prototype );
+THREE.ArcCurve.prototype.constructor = THREE.ArcCurve;

+ 1 - 0
src/extras/curves/CubicBezierCurve.js

@@ -12,6 +12,7 @@ THREE.CubicBezierCurve = function ( v0, v1, v2, v3 ) {
 };
 
 THREE.CubicBezierCurve.prototype = Object.create( THREE.Curve.prototype );
+THREE.CubicBezierCurve.prototype.constructor = THREE.CubicBezierCurve;
 
 THREE.CubicBezierCurve.prototype.getPoint = function ( t ) {
 

+ 1 - 0
src/extras/curves/EllipseCurve.js

@@ -18,6 +18,7 @@ THREE.EllipseCurve = function ( aX, aY, xRadius, yRadius, aStartAngle, aEndAngle
 };
 
 THREE.EllipseCurve.prototype = Object.create( THREE.Curve.prototype );
+THREE.EllipseCurve.prototype.constructor = THREE.EllipseCurve;
 
 THREE.EllipseCurve.prototype.getPoint = function ( t ) {
 

+ 1 - 0
src/extras/curves/LineCurve.js

@@ -10,6 +10,7 @@ THREE.LineCurve = function ( v1, v2 ) {
 };
 
 THREE.LineCurve.prototype = Object.create( THREE.Curve.prototype );
+THREE.LineCurve.prototype.constructor = THREE.LineCurve;
 
 THREE.LineCurve.prototype.getPoint = function ( t ) {
 

+ 1 - 0
src/extras/curves/QuadraticBezierCurve.js

@@ -12,6 +12,7 @@ THREE.QuadraticBezierCurve = function ( v0, v1, v2 ) {
 };
 
 THREE.QuadraticBezierCurve.prototype = Object.create( THREE.Curve.prototype );
+THREE.QuadraticBezierCurve.prototype.constructor = THREE.QuadraticBezierCurve;
 
 
 THREE.QuadraticBezierCurve.prototype.getPoint = function ( t ) {

+ 1 - 0
src/extras/curves/SplineCurve.js

@@ -9,6 +9,7 @@ THREE.SplineCurve = function ( points /* array of Vector2 */ ) {
 };
 
 THREE.SplineCurve.prototype = Object.create( THREE.Curve.prototype );
+THREE.SplineCurve.prototype.constructor = THREE.SplineCurve;
 
 THREE.SplineCurve.prototype.getPoint = function ( t ) {
 

+ 1 - 0
src/extras/geometries/BoxGeometry.js

@@ -124,3 +124,4 @@ THREE.BoxGeometry = function ( width, height, depth, widthSegments, heightSegmen
 };
 
 THREE.BoxGeometry.prototype = Object.create( THREE.Geometry.prototype );
+THREE.BoxGeometry.prototype.constructor = THREE.BoxGeometry;

+ 1 - 0
src/extras/geometries/CircleGeometry.js

@@ -56,3 +56,4 @@ THREE.CircleGeometry = function ( radius, segments, thetaStart, thetaLength ) {
 };
 
 THREE.CircleGeometry.prototype = Object.create( THREE.Geometry.prototype );
+THREE.CircleGeometry.prototype.constructor = THREE.CircleGeometry;

+ 1 - 0
src/extras/geometries/CylinderGeometry.js

@@ -165,3 +165,4 @@ THREE.CylinderGeometry = function ( radiusTop, radiusBottom, height, radialSegme
 }
 
 THREE.CylinderGeometry.prototype = Object.create( THREE.Geometry.prototype );
+THREE.CylinderGeometry.prototype.constructor = THREE.CylinderGeometry;

+ 1 - 0
src/extras/geometries/DodecahedronGeometry.js

@@ -53,3 +53,4 @@ THREE.DodecahedronGeometry = function ( radius, detail ) {
 };
 
 THREE.DodecahedronGeometry.prototype = Object.create( THREE.Geometry.prototype );
+THREE.DodecahedronGeometry.prototype.constructor = THREE.DodecahedronGeometry;

+ 1 - 0
src/extras/geometries/ExtrudeGeometry.js

@@ -52,6 +52,7 @@ THREE.ExtrudeGeometry = function ( shapes, options ) {
 };
 
 THREE.ExtrudeGeometry.prototype = Object.create( THREE.Geometry.prototype );
+THREE.ExtrudeGeometry.prototype.constructor = THREE.ExtrudeGeometry;
 
 THREE.ExtrudeGeometry.prototype.addShapeList = function ( shapes, options ) {
 	var sl = shapes.length;

+ 1 - 0
src/extras/geometries/IcosahedronGeometry.js

@@ -30,3 +30,4 @@ THREE.IcosahedronGeometry = function ( radius, detail ) {
 };
 
 THREE.IcosahedronGeometry.prototype = Object.create( THREE.Geometry.prototype );
+THREE.IcosahedronGeometry.prototype.constructor = THREE.IcosahedronGeometry;

+ 1 - 0
src/extras/geometries/LatheGeometry.js

@@ -103,3 +103,4 @@ THREE.LatheGeometry = function ( points, segments, phiStart, phiLength ) {
 };
 
 THREE.LatheGeometry.prototype = Object.create( THREE.Geometry.prototype );
+THREE.LatheGeometry.prototype.constructor = THREE.LatheGeometry;

+ 1 - 0
src/extras/geometries/OctahedronGeometry.js

@@ -28,3 +28,4 @@ THREE.OctahedronGeometry = function ( radius, detail ) {
 };
 
 THREE.OctahedronGeometry.prototype = Object.create( THREE.Geometry.prototype );
+THREE.OctahedronGeometry.prototype.constructor = THREE.OctahedronGeometry;

+ 1 - 0
src/extras/geometries/ParametricGeometry.js

@@ -82,3 +82,4 @@ THREE.ParametricGeometry = function ( func, slices, stacks ) {
 };
 
 THREE.ParametricGeometry.prototype = Object.create( THREE.Geometry.prototype );
+THREE.ParametricGeometry.prototype.constructor = THREE.ParametricGeometry;

+ 1 - 0
src/extras/geometries/PlaneBufferGeometry.js

@@ -93,3 +93,4 @@ THREE.PlaneBufferGeometry = function ( width, height, widthSegments, heightSegme
 };
 
 THREE.PlaneBufferGeometry.prototype = Object.create( THREE.BufferGeometry.prototype );
+THREE.PlaneBufferGeometry.prototype.constructor = THREE.PlaneBufferGeometry;

+ 1 - 0
src/extras/geometries/PlaneGeometry.js

@@ -23,3 +23,4 @@ THREE.PlaneGeometry = function ( width, height, widthSegments, heightSegments )
 };
 
 THREE.PlaneGeometry.prototype = Object.create( THREE.Geometry.prototype );
+THREE.PlaneGeometry.prototype.constructor = THREE.PlaneGeometry;

+ 1 - 0
src/extras/geometries/PolyhedronGeometry.js

@@ -233,3 +233,4 @@ THREE.PolyhedronGeometry = function ( vertices, indices, radius, detail ) {
 };
 
 THREE.PolyhedronGeometry.prototype = Object.create( THREE.Geometry.prototype );
+THREE.PolyhedronGeometry.prototype.constructor = THREE.PolyhedronGeometry;

+ 1 - 0
src/extras/geometries/RingGeometry.js

@@ -79,4 +79,5 @@ THREE.RingGeometry = function ( innerRadius, outerRadius, thetaSegments, phiSegm
 };
 
 THREE.RingGeometry.prototype = Object.create( THREE.Geometry.prototype );
+THREE.RingGeometry.prototype.constructor = THREE.RingGeometry;
 

+ 1 - 0
src/extras/geometries/ShapeGeometry.js

@@ -29,6 +29,7 @@ THREE.ShapeGeometry = function ( shapes, options ) {
 };
 
 THREE.ShapeGeometry.prototype = Object.create( THREE.Geometry.prototype );
+THREE.ShapeGeometry.prototype.constructor = THREE.ShapeGeometry;
 
 /**
  * Add an array of shapes to THREE.ShapeGeometry.

+ 1 - 0
src/extras/geometries/SphereGeometry.js

@@ -110,3 +110,4 @@ THREE.SphereGeometry = function ( radius, widthSegments, heightSegments, phiStar
 };
 
 THREE.SphereGeometry.prototype = Object.create( THREE.Geometry.prototype );
+THREE.SphereGeometry.prototype.constructor = THREE.SphereGeometry;

+ 1 - 0
src/extras/geometries/TetrahedronGeometry.js

@@ -24,3 +24,4 @@ THREE.TetrahedronGeometry = function ( radius, detail ) {
 };
 
 THREE.TetrahedronGeometry.prototype = Object.create( THREE.Geometry.prototype );
+THREE.TetrahedronGeometry.prototype.constructor = THREE.TetrahedronGeometry;

+ 1 - 0
src/extras/geometries/TextGeometry.js

@@ -59,3 +59,4 @@ THREE.TextGeometry = function ( text, parameters ) {
 };
 
 THREE.TextGeometry.prototype = Object.create( THREE.ExtrudeGeometry.prototype );
+THREE.TextGeometry.prototype.constructor = THREE.TextGeometry;

+ 1 - 0
src/extras/geometries/TorusGeometry.js

@@ -76,3 +76,4 @@ THREE.TorusGeometry = function ( radius, tube, radialSegments, tubularSegments,
 };
 
 THREE.TorusGeometry.prototype = Object.create( THREE.Geometry.prototype );
+THREE.TorusGeometry.prototype.constructor = THREE.TorusGeometry;

+ 1 - 0
src/extras/geometries/TorusKnotGeometry.js

@@ -110,3 +110,4 @@ THREE.TorusKnotGeometry = function ( radius, tube, radialSegments, tubularSegmen
 };
 
 THREE.TorusKnotGeometry.prototype = Object.create( THREE.Geometry.prototype );
+THREE.TorusKnotGeometry.prototype.constructor = THREE.TorusKnotGeometry;

+ 1 - 0
src/extras/geometries/TubeGeometry.js

@@ -133,6 +133,7 @@ THREE.TubeGeometry = function ( path, segments, radius, radialSegments, closed )
 };
 
 THREE.TubeGeometry.prototype = Object.create( THREE.Geometry.prototype );
+THREE.TubeGeometry.prototype.constructor = THREE.TubeGeometry;
 
 
 // For computing of Frenet frames, exposing the tangents, normals and binormals the spline

+ 1 - 0
src/extras/helpers/ArrowHelper.js

@@ -51,6 +51,7 @@ THREE.ArrowHelper = ( function () {
 }() );
 
 THREE.ArrowHelper.prototype = Object.create( THREE.Object3D.prototype );
+THREE.ArrowHelper.prototype.constructor = THREE.ArrowHelper;
 
 THREE.ArrowHelper.prototype.setDirection = ( function () {
 

+ 1 - 0
src/extras/helpers/AxisHelper.js

@@ -30,3 +30,4 @@ THREE.AxisHelper = function ( size ) {
 };
 
 THREE.AxisHelper.prototype = Object.create( THREE.Line.prototype );
+THREE.AxisHelper.prototype.constructor = THREE.AxisHelper;

+ 1 - 0
src/extras/helpers/BoundingBoxHelper.js

@@ -17,6 +17,7 @@ THREE.BoundingBoxHelper = function ( object, hex ) {
 };
 
 THREE.BoundingBoxHelper.prototype = Object.create( THREE.Mesh.prototype );
+THREE.BoundingBoxHelper.prototype.constructor = THREE.BoundingBoxHelper;
 
 THREE.BoundingBoxHelper.prototype.update = function () {
 

+ 1 - 0
src/extras/helpers/BoxHelper.js

@@ -18,6 +18,7 @@ THREE.BoxHelper = function ( object ) {
 };
 
 THREE.BoxHelper.prototype = Object.create( THREE.Line.prototype );
+THREE.BoxHelper.prototype.constructor = THREE.BoxHelper;
 
 THREE.BoxHelper.prototype.update = function ( object ) {
 

+ 1 - 0
src/extras/helpers/CameraHelper.js

@@ -104,6 +104,7 @@ THREE.CameraHelper = function ( camera ) {
 };
 
 THREE.CameraHelper.prototype = Object.create( THREE.Line.prototype );
+THREE.CameraHelper.prototype.constructor = THREE.CameraHelper;
 
 THREE.CameraHelper.prototype.update = function () {
 

Some files were not shown because too many files changed in this diff