Fixed this return types for Phaser.Cache.BaseCache

This commit is contained in:
Jason Kwok 2020-01-30 23:11:38 +08:00
parent b9e3a6395b
commit 1146390520

View file

@ -60,7 +60,7 @@ var BaseCache = new Class({
* @param {string} key - The unique key by which the data added to the cache will be referenced.
* @param {*} data - The data to be stored in the cache.
*
* @return {Phaser.Cache.BaseCache} This BaseCache object.
* @return {this} This BaseCache object.
*/
add: function (key, data)
{
@ -131,7 +131,7 @@ var BaseCache = new Class({
*
* @param {string} key - The unique key of the item to remove from the cache.
*
* @return {Phaser.Cache.BaseCache} This BaseCache object.
* @return {this} This BaseCache object.
*/
remove: function (key)
{