浏览代码

fix spelling in TransformControl.js (attatch->attach, detatch->detach)

Ben Houston 12 年之前
父节点
当前提交
8662aec3f3
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      examples/js/controls/TransformControls.js
  2. 1 1
      examples/misc_controls_transform.html

+ 2 - 2
examples/js/controls/TransformControls.js

@@ -350,7 +350,7 @@ THREE.TransformControls = function ( camera, domElement, doc ) {
 
 	}
 
-	this.attatch = function ( object ) {
+	this.attach = function ( object ) {
 
 		this.object = object;
 	 	this.setMode( scope.mode );
@@ -361,7 +361,7 @@ THREE.TransformControls = function ( camera, domElement, doc ) {
 
 	}
 
-	this.detatch = function ( object ) {
+	this.detach = function ( object ) {
 
 		this.object = undefined;
 

+ 1 - 1
examples/misc_controls_transform.html

@@ -72,7 +72,7 @@
 
 					var control = new THREE.TransformControls( camera, renderer.domElement );
 					control.addEventListener( 'change', render );
-					control.attatch( mesh );
+					control.attach( mesh );
 					control.scale = 0.65;
 					scene.add( control.gizmo );