Skip to content

Commit f970afb

Browse files
committed
Fixed this return type for Phaser.Loader.LoaderPlugin
1 parent 4c9c505 commit f970afb

31 files changed

Lines changed: 1012 additions & 183 deletions

src/loader/LoaderPlugin.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ var LoaderPlugin = new Class({
368368
*
369369
* @param {string} [url] - The URL to use. Leave empty to reset.
370370
*
371-
* @return {Phaser.Loader.LoaderPlugin} This Loader object.
371+
* @return {this} This Loader object.
372372
*/
373373
setBaseURL: function (url)
374374
{
@@ -408,7 +408,7 @@ var LoaderPlugin = new Class({
408408
*
409409
* @param {string} [path] - The path to use. Leave empty to reset.
410410
*
411-
* @return {Phaser.Loader.LoaderPlugin} This Loader object.
411+
* @return {this} This Loader object.
412412
*/
413413
setPath: function (path)
414414
{
@@ -437,7 +437,7 @@ var LoaderPlugin = new Class({
437437
*
438438
* @param {string} [prefix] - The prefix to use. Leave empty to reset.
439439
*
440-
* @return {Phaser.Loader.LoaderPlugin} This Loader object.
440+
* @return {this} This Loader object.
441441
*/
442442
setPrefix: function (prefix)
443443
{
@@ -463,7 +463,7 @@ var LoaderPlugin = new Class({
463463
*
464464
* @param {string} [crossOrigin] - The value to use for the `crossOrigin` property in the load request.
465465
*
466-
* @return {Phaser.Loader.LoaderPlugin} This Loader object.
466+
* @return {this} This Loader object.
467467
*/
468468
setCORS: function (crossOrigin)
469469
{
@@ -952,7 +952,7 @@ var LoaderPlugin = new Class({
952952
* @param {*} data - The JSON data, ready parsed.
953953
* @param {string} [filename=file.json] - The name to save the JSON file as.
954954
*
955-
* @return {Phaser.Loader.LoaderPlugin} This Loader plugin.
955+
* @return {this} This Loader plugin.
956956
*/
957957
saveJSON: function (data, filename)
958958
{
@@ -972,7 +972,7 @@ var LoaderPlugin = new Class({
972972
* @param {string} [filename=file.json] - The filename to save the file as.
973973
* @param {string} [filetype=application/json] - The file type to use when saving the file. Defaults to JSON.
974974
*
975-
* @return {Phaser.Loader.LoaderPlugin} This Loader plugin.
975+
* @return {this} This Loader plugin.
976976
*/
977977
save: function (data, filename, filetype)
978978
{

src/loader/filetypes/AnimationJSONFile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ var AnimationJSONFile = new Class({
171171
* @param {string} [dataKey] - When the Animation JSON file loads only this property will be stored in the Cache and used to create animation data.
172172
* @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.
173173
*
174-
* @return {Phaser.Loader.LoaderPlugin} The Loader instance.
174+
* @return {this} The Loader instance.
175175
*/
176176
FileTypesManager.register('animation', function (key, url, dataKey, xhrSettings)
177177
{

src/loader/filetypes/AtlasJSONFile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ var AtlasJSONFile = new Class({
211211
* @param {Phaser.Types.Loader.XHRSettingsObject} [textureXhrSettings] - An XHR Settings configuration object for the atlas image file. Used in replacement of the Loaders default XHR Settings.
212212
* @param {Phaser.Types.Loader.XHRSettingsObject} [atlasXhrSettings] - An XHR Settings configuration object for the atlas json file. Used in replacement of the Loaders default XHR Settings.
213213
*
214-
* @return {Phaser.Loader.LoaderPlugin} The Loader instance.
214+
* @return {this} The Loader instance.
215215
*/
216216
FileTypesManager.register('atlas', function (key, textureURL, atlasURL, textureXhrSettings, atlasXhrSettings)
217217
{

src/loader/filetypes/AtlasXMLFile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ var AtlasXMLFile = new Class({
205205
* @param {Phaser.Types.Loader.XHRSettingsObject} [textureXhrSettings] - An XHR Settings configuration object for the atlas image file. Used in replacement of the Loaders default XHR Settings.
206206
* @param {Phaser.Types.Loader.XHRSettingsObject} [atlasXhrSettings] - An XHR Settings configuration object for the atlas xml file. Used in replacement of the Loaders default XHR Settings.
207207
*
208-
* @return {Phaser.Loader.LoaderPlugin} The Loader instance.
208+
* @return {this} The Loader instance.
209209
*/
210210
FileTypesManager.register('atlasXML', function (key, textureURL, atlasURL, textureXhrSettings, atlasXhrSettings)
211211
{

src/loader/filetypes/AudioFile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ AudioFile.getAudioURL = function (game, urls)
220220
* @param {any} [config] - An object containing an `instances` property for HTML5Audio. Defaults to 1.
221221
* @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.
222222
*
223-
* @return {Phaser.Loader.LoaderPlugin} The Loader instance.
223+
* @return {this} The Loader instance.
224224
*/
225225
FileTypesManager.register('audio', function (key, urls, config, xhrSettings)
226226
{

src/loader/filetypes/AudioSpriteFile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ var AudioSpriteFile = new Class({
238238
* @param {Phaser.Types.Loader.XHRSettingsObject} [audioXhrSettings] - An XHR Settings configuration object for the audio file. Used in replacement of the Loaders default XHR Settings.
239239
* @param {Phaser.Types.Loader.XHRSettingsObject} [jsonXhrSettings] - An XHR Settings configuration object for the json file. Used in replacement of the Loaders default XHR Settings.
240240
*
241-
* @return {Phaser.Loader.LoaderPlugin} The Loader.
241+
* @return {this} The Loader.
242242
*/
243243
FileTypesManager.register('audioSprite', function (key, jsonURL, audioURL, audioConfig, audioXhrSettings, jsonXhrSettings)
244244
{

src/loader/filetypes/BinaryFile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ var BinaryFile = new Class({
153153
* @param {any} [dataType] - Optional type to cast the binary file to once loaded. For example, `Uint8Array`.
154154
* @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.
155155
*
156-
* @return {Phaser.Loader.LoaderPlugin} The Loader instance.
156+
* @return {this} The Loader instance.
157157
*/
158158
FileTypesManager.register('binary', function (key, url, dataType, xhrSettings)
159159
{

src/loader/filetypes/BitmapFontFile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ var BitmapFontFile = new Class({
205205
* @param {Phaser.Types.Loader.XHRSettingsObject} [textureXhrSettings] - An XHR Settings configuration object for the font image file. Used in replacement of the Loaders default XHR Settings.
206206
* @param {Phaser.Types.Loader.XHRSettingsObject} [fontDataXhrSettings] - An XHR Settings configuration object for the font data xml file. Used in replacement of the Loaders default XHR Settings.
207207
*
208-
* @return {Phaser.Loader.LoaderPlugin} The Loader instance.
208+
* @return {this} The Loader instance.
209209
*/
210210
FileTypesManager.register('bitmapFont', function (key, textureURL, fontDataURL, textureXhrSettings, fontDataXhrSettings)
211211
{

src/loader/filetypes/CSSFile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ var CSSFile = new Class({
139139
* @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `<key>.css`, i.e. if `key` was "alien" then the URL will be "alien.css".
140140
* @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.
141141
*
142-
* @return {Phaser.Loader.LoaderPlugin} The Loader instance.
142+
* @return {this} The Loader instance.
143143
*/
144144
FileTypesManager.register('css', function (key, url, xhrSettings)
145145
{

src/loader/filetypes/GLSLFile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ var GLSLFile = new Class({
382382
* @param {string} [shaderType='fragment'] - The type of shader. Either `fragment` for a fragment shader, or `vertex` for a vertex shader. This is ignored if you load a shader bundle.
383383
* @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.
384384
*
385-
* @return {Phaser.Loader.LoaderPlugin} The Loader instance.
385+
* @return {this} The Loader instance.
386386
*/
387387
FileTypesManager.register('glsl', function (key, url, shaderType, xhrSettings)
388388
{

0 commit comments

Comments
 (0)