Skip to content

Commit 02395fd

Browse files
committed
Fixed this return types for Phaser.Data.DataManager
1 parent 4cd6b71 commit 02395fd

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/data/DataManager.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ var DataManager = new Class({
255255
* @param {(string|object)} key - The key to set the value for. Or an object or key value pairs. If an object the `data` argument is ignored.
256256
* @param {*} data - The value to set for the given key. If an object is provided as the key this argument is ignored.
257257
*
258-
* @return {Phaser.Data.DataManager} This DataManager object.
258+
* @return {this} This DataManager object.
259259
*/
260260
set: function (key, data)
261261
{
@@ -292,7 +292,7 @@ var DataManager = new Class({
292292
* @param {string} key - The key to set the value for.
293293
* @param {*} data - The value to set.
294294
*
295-
* @return {Phaser.Data.DataManager} This DataManager object.
295+
* @return {this} This DataManager object.
296296
*/
297297
setValue: function (key, data)
298298
{
@@ -356,7 +356,7 @@ var DataManager = new Class({
356356
* @param {*} [context] - Value to use as `this` when executing callback.
357357
* @param {...*} [args] - Additional arguments that will be passed to the callback, after the game object, key, and data.
358358
*
359-
* @return {Phaser.Data.DataManager} This DataManager object.
359+
* @return {this} This DataManager object.
360360
*/
361361
each: function (callback, context)
362362
{
@@ -393,7 +393,7 @@ var DataManager = new Class({
393393
* @param {Object.<string, *>} data - The data to merge.
394394
* @param {boolean} [overwrite=true] - Whether to overwrite existing data. Defaults to true.
395395
*
396-
* @return {Phaser.Data.DataManager} This DataManager object.
396+
* @return {this} This DataManager object.
397397
*/
398398
merge: function (data, overwrite)
399399
{
@@ -429,7 +429,7 @@ var DataManager = new Class({
429429
*
430430
* @param {(string|string[])} key - The key to remove, or an array of keys to remove.
431431
*
432-
* @return {Phaser.Data.DataManager} This DataManager object.
432+
* @return {this} This DataManager object.
433433
*/
434434
remove: function (key)
435435
{
@@ -463,7 +463,7 @@ var DataManager = new Class({
463463
*
464464
* @param {string} key - The key to set the value for.
465465
*
466-
* @return {Phaser.Data.DataManager} This DataManager object.
466+
* @return {this} This DataManager object.
467467
*/
468468
removeValue: function (key)
469469
{
@@ -535,7 +535,7 @@ var DataManager = new Class({
535535
*
536536
* @param {boolean} value - Whether to freeze or unfreeze the Data Manager.
537537
*
538-
* @return {Phaser.Data.DataManager} This DataManager object.
538+
* @return {this} This DataManager object.
539539
*/
540540
setFreeze: function (value)
541541
{
@@ -550,7 +550,7 @@ var DataManager = new Class({
550550
* @method Phaser.Data.DataManager#reset
551551
* @since 3.0.0
552552
*
553-
* @return {Phaser.Data.DataManager} This DataManager object.
553+
* @return {this} This DataManager object.
554554
*/
555555
reset: function ()
556556
{

0 commit comments

Comments
 (0)