Fixed jsdoc types

This commit is contained in:
Richard Davey 2018-03-19 17:05:29 +00:00
parent 15579d7350
commit 4de9719fbe
5 changed files with 5 additions and 5 deletions

View file

@ -100,7 +100,7 @@ var EventEmitter = new Class({
*
* @param {string|symbol} event - The event name.
*
* @return {Boolean} `true` if the event had listeners, else `false`.
* @return {boolean} `true` if the event had listeners, else `false`.
*/
/**

View file

@ -14,7 +14,7 @@
* @param {string} [type='image/png'] - [description]
* @param {float} [encoderOptions=0.92] - [description]
*
* @return {Image} [description]
* @return {HTMLImageElement} [description]
*/
var CanvasSnapshot = function (canvas, type, encoderOptions)
{

View file

@ -14,7 +14,7 @@
* @param {string} [type='image/png'] - [description]
* @param {float} [encoderOptions=0.92] - [description]
*
* @return {Image} [description]
* @return {HTMLImageElement} [description]
*/
var WebGLSnapshot = function (sourceCanvas, type, encoderOptions)
{

View file

@ -311,7 +311,7 @@ var Texture = new Class({
*
* @param {string|integer} [name] - The string-based name, or integer based index, of the Frame to get from this Texture.
*
* @return {Image|HTMLCanvasElement} The DOM Image or Canvas Element.
* @return {HTMLImageElement|HTMLCanvasElement} The DOM Image or Canvas Element.
*/
getSourceImage: function (name)
{

View file

@ -47,7 +47,7 @@ var TextureSource = new Class({
* The source image data. This is either an Image Element, or a Canvas Element.
*
* @name Phaser.Textures.TextureSource#image
* @type {Image|HTMLCanvasElement}
* @type {HTMLImageElement|HTMLCanvasElement}
* @since 3.0.0
*/
this.image = source;