Skip to content

Commit 4de9719

Browse files
committed
Fixed jsdoc types
1 parent 15579d7 commit 4de9719

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/events/EventEmitter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ var EventEmitter = new Class({
100100
*
101101
* @param {string|symbol} event - The event name.
102102
*
103-
* @return {Boolean} `true` if the event had listeners, else `false`.
103+
* @return {boolean} `true` if the event had listeners, else `false`.
104104
*/
105105

106106
/**

src/renderer/snapshot/CanvasSnapshot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* @param {string} [type='image/png'] - [description]
1515
* @param {float} [encoderOptions=0.92] - [description]
1616
*
17-
* @return {Image} [description]
17+
* @return {HTMLImageElement} [description]
1818
*/
1919
var CanvasSnapshot = function (canvas, type, encoderOptions)
2020
{

src/renderer/snapshot/WebGLSnapshot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* @param {string} [type='image/png'] - [description]
1515
* @param {float} [encoderOptions=0.92] - [description]
1616
*
17-
* @return {Image} [description]
17+
* @return {HTMLImageElement} [description]
1818
*/
1919
var WebGLSnapshot = function (sourceCanvas, type, encoderOptions)
2020
{

src/textures/Texture.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ var Texture = new Class({
311311
*
312312
* @param {string|integer} [name] - The string-based name, or integer based index, of the Frame to get from this Texture.
313313
*
314-
* @return {Image|HTMLCanvasElement} The DOM Image or Canvas Element.
314+
* @return {HTMLImageElement|HTMLCanvasElement} The DOM Image or Canvas Element.
315315
*/
316316
getSourceImage: function (name)
317317
{

src/textures/TextureSource.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ var TextureSource = new Class({
4747
* The source image data. This is either an Image Element, or a Canvas Element.
4848
*
4949
* @name Phaser.Textures.TextureSource#image
50-
* @type {Image|HTMLCanvasElement}
50+
* @type {HTMLImageElement|HTMLCanvasElement}
5151
* @since 3.0.0
5252
*/
5353
this.image = source;

0 commit comments

Comments
 (0)