Skip to content

Commit 9a2c110

Browse files
authored
Fix GameObject typings for returning this
1 parent e140640 commit 9a2c110

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/gameobjects/GameObject.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ var GameObject = new Class({
182182
*
183183
* @param {boolean} value - True if this Game Object should be set as active, false if not.
184184
*
185-
* @return {Phaser.GameObjects.GameObject} This GameObject.
185+
* @return {this} This GameObject.
186186
*/
187187
setActive: function (value)
188188
{
@@ -200,7 +200,7 @@ var GameObject = new Class({
200200
*
201201
* @param {string} value - The name to be given to this Game Object.
202202
*
203-
* @return {Phaser.GameObjects.GameObject} This GameObject.
203+
* @return {this} This GameObject.
204204
*/
205205
setName: function (value)
206206
{
@@ -216,7 +216,7 @@ var GameObject = new Class({
216216
* @since 3.0.0
217217
* @see Phaser.Data.DataManager
218218
*
219-
* @return {Phaser.GameObjects.GameObject} This GameObject.
219+
* @return {this} This GameObject.
220220
*/
221221
setDataEnabled: function ()
222222
{
@@ -347,7 +347,7 @@ var GameObject = new Class({
347347
* @param {HitAreaCallback} [callback] - A callback to be invoked when the Game Object is interacted with. If you provide a shape you must also provide a callback.
348348
* @param {boolean} [dropZone=false] - Should this Game Object be treated as a drop zone target?
349349
*
350-
* @return {Phaser.GameObjects.GameObject} This GameObject.
350+
* @return {this} This GameObject.
351351
*/
352352
setInteractive: function (shape, callback, dropZone)
353353
{
@@ -368,7 +368,7 @@ var GameObject = new Class({
368368
* @method Phaser.GameObjects.GameObject#disableInteractive
369369
* @since 3.7.0
370370
*
371-
* @return {Phaser.GameObjects.GameObject} This GameObject.
371+
* @return {this} This GameObject.
372372
*/
373373
disableInteractive: function ()
374374
{
@@ -396,7 +396,7 @@ var GameObject = new Class({
396396
* @method Phaser.GameObjects.GameObject#removeInteractive
397397
* @since 3.7.0
398398
*
399-
* @return {Phaser.GameObjects.GameObject} This GameObject.
399+
* @return {this} This GameObject.
400400
*/
401401
removeInteractive: function ()
402402
{

0 commit comments

Comments
 (0)