From 474fd8e05515c7c04a68e39c97c105b08a706518 Mon Sep 17 00:00:00 2001 From: photonstorm Date: Tue, 21 Oct 2014 23:08:16 +0100 Subject: [PATCH] JSDoc fixes. --- src/core/SignalBinding.js | 4 ++-- src/loader/Cache.js | 2 +- src/pixi/renderers/canvas/CanvasRenderer.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/SignalBinding.js b/src/core/SignalBinding.js index 63703d4572..b1e0a681ad 100644 --- a/src/core/SignalBinding.js +++ b/src/core/SignalBinding.js @@ -121,7 +121,7 @@ Phaser.SignalBinding.prototype = { /** * @method Phaser.SignalBinding#getListener - * @return {Function} Handler function bound to the signal. + * @return {function} Handler function bound to the signal. */ getListener: function () { return this._listener; @@ -129,7 +129,7 @@ Phaser.SignalBinding.prototype = { /** * @method Phaser.SignalBinding#getSignal - * @return {Signal} Signal that listener is currently bound to. + * @return {Phaser.Signal} Signal that listener is currently bound to. */ getSignal: function () { return this._signal; diff --git a/src/loader/Cache.js b/src/loader/Cache.js index dfaab107b3..3730d9d3fc 100644 --- a/src/loader/Cache.js +++ b/src/loader/Cache.js @@ -1154,7 +1154,7 @@ Phaser.Cache.prototype = { * * @method Phaser.Cache#getFrameCount * @param {string} key - Asset key of the image you want. - * @return {integer} Then number of frames. 0 if the image is not found. + * @return {number} Then number of frames. 0 if the image is not found. */ getFrameCount: function (key) { diff --git a/src/pixi/renderers/canvas/CanvasRenderer.js b/src/pixi/renderers/canvas/CanvasRenderer.js index c3fabdac13..6f78212920 100644 --- a/src/pixi/renderers/canvas/CanvasRenderer.js +++ b/src/pixi/renderers/canvas/CanvasRenderer.js @@ -104,7 +104,7 @@ PIXI.CanvasRenderer = function(width, height, options) /** * The canvas 2d context that everything is drawn with * @property context - * @type CanvasRenderingContext2D 2d Context + * @type CanvasRenderingContext2D */ this.context = this.view.getContext( "2d", { alpha: this.transparent } );