Skip to content

Commit ae9460c

Browse files
committed
Docs fix.
1 parent 2cf447c commit ae9460c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/utils/CanvasPool.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ Phaser.CanvasPool = {
7979
},
8080

8181
/**
82-
* Removes the parent from a canvas element from the pool, freeing it up for re-use.
82+
* Looks up a canvas based on its parent, and if found puts it back in the pool, freeing it up for re-use.
83+
* The canvas has its width and height set to 1, and its parent attribute nulled.
8384
*
8485
* @static
8586
* @method Phaser.CanvasPool.remove
@@ -102,7 +103,8 @@ Phaser.CanvasPool = {
102103
},
103104

104105
/**
105-
* Removes the parent from a canvas element from the pool, freeing it up for re-use.
106+
* Looks up a canvas based on its type, and if found puts it back in the pool, freeing it up for re-use.
107+
* The canvas has its width and height set to 1, and its parent attribute nulled.
106108
*
107109
* @static
108110
* @method Phaser.CanvasPool.removeByCanvas

0 commit comments

Comments
 (0)