Forráskód Böngészése

Merge pull request #11985 from looeee/patch-6

[DOCS] minor improvement of AnimationLoader doc
Mr.doob 8 éve
szülő
commit
536256f893
1 módosított fájl, 3 hozzáadás és 3 törlés
  1. 3 3
      docs/api/loaders/AnimationLoader.html

+ 3 - 3
docs/api/loaders/AnimationLoader.html

@@ -11,7 +11,7 @@
 		<h1>[name]</h1>
 		<h1>[name]</h1>
 
 
 		<div class="desc">
 		<div class="desc">
-			Class for loading an animation in JSON format.
+			Class for loading [page:AnimationClip AnimationClips] in JSON format.
 			This uses the [page:FileLoader] internally for loading files.
 			This uses the [page:FileLoader] internally for loading files.
 		</div>
 		</div>
 
 
@@ -26,8 +26,8 @@
 			// resource URL
 			// resource URL
 			'animations/animation.js',
 			'animations/animation.js',
 			// Function when resource is loaded
 			// Function when resource is loaded
-			function ( animation ) {
-				// do something with the animation
+			function ( animations ) {
+				// animations is an array of AnimationClips
 			},
 			},
 			// Function called when download progresses
 			// Function called when download progresses
 			function ( xhr ) {
 			function ( xhr ) {