@@ -13,6 +13,13 @@ var GetValue = require('../utils/object/GetValue');
1313var Parser = require ( './parsers' ) ;
1414var Texture = require ( './Texture' ) ;
1515
16+ /**
17+ * @callback EachTextureCallback
18+ *
19+ * @param {Phaser.Textures.Texture } texture - [description]
20+ * @param {...* } [arguments] - Additional arguments that will be passed to the callback, after the child.
21+ */
22+
1623/**
1724 * @classdesc
1825 * Textures are managed by the global TextureManager. This is a singleton class that is
@@ -163,7 +170,7 @@ var TextureManager = new Class({
163170 image . onload = function ( )
164171 {
165172 var texture = _this . create ( key , image ) ;
166-
173+
167174 Parser . Image ( texture , 0 ) ;
168175
169176 _this . emit ( 'onload' , key , texture ) ;
@@ -187,7 +194,7 @@ var TextureManager = new Class({
187194 addImage : function ( key , source , dataSource )
188195 {
189196 var texture = this . create ( key , source ) ;
190-
197+
191198 Parser . Image ( texture , 0 ) ;
192199
193200 if ( dataSource )
@@ -262,7 +269,7 @@ var TextureManager = new Class({
262269 addCanvas : function ( key , source )
263270 {
264271 var texture = this . create ( key , source ) ;
265-
272+
266273 Parser . Canvas ( texture , 0 ) ;
267274
268275 return texture ;
@@ -386,7 +393,7 @@ var TextureManager = new Class({
386393
387394 /**
388395 * Adds a Sprite Sheet to this Texture Manager.
389- *
396+ *
390397 * In Phaser terminology a Sprite Sheet is a texture containing different frames, but each frame is the exact
391398 * same size and cannot be trimmed or rotated.
392399 *
@@ -419,7 +426,7 @@ var TextureManager = new Class({
419426
420427 /**
421428 * Adds a Sprite Sheet to this Texture Manager, where the Sprite Sheet exists as a Frame within a Texture Atlas.
422- *
429+ *
423430 * In Phaser terminology a Sprite Sheet is a texture containing different frames, but each frame is the exact
424431 * same size and cannot be trimmed or rotated.
425432 *
@@ -738,7 +745,7 @@ var TextureManager = new Class({
738745 * @method Phaser.Textures.TextureManager#each
739746 * @since 3.0.0
740747 *
741- * @param {function } callback - The callback function to be sent the Textures.
748+ * @param {EachTextureCallback } callback - The callback function to be sent the Textures.
742749 * @param {object } scope - The value to use as `this` when executing the callback.
743750 * @param {...* } [arguments] - Additional arguments that will be passed to the callback, after the child.
744751 */
0 commit comments