Skip to content

Commit 449506d

Browse files
committed
Update JSDoc on Loader
1 parent c3fb727 commit 449506d

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

src/loader/LoaderPlugin.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -812,10 +812,10 @@ var LoaderPlugin = new Class({
812812
* @method Phaser.Loader.LoaderPlugin#saveJSON
813813
* @since 3.0.0
814814
*
815-
* @param {[type]} data - [description]
816-
* @param {[type]} filename - [description]
815+
* @param {any} data - [description]
816+
* @param {string} [filename=file.json] - [description]
817817
*
818-
* @return {[type]} [description]
818+
* @return {Phaser.Loader.LoaderPlugin} This Loader plugin.
819819
*/
820820
saveJSON: function (data, filename)
821821
{
@@ -828,9 +828,9 @@ var LoaderPlugin = new Class({
828828
* @method Phaser.Loader.LoaderPlugin#save
829829
* @since 3.0.0
830830
*
831-
* @param {[type]} data - [description]
832-
* @param {[type]} filename - [description]
833-
* @param {[type]} filetype - [description]
831+
* @param {any} data - [description]
832+
* @param {string} [filename=file.json] - [description]
833+
* @param {string} [filetype=application/json] - [description]
834834
*
835835
* @return {Phaser.Loader.LoaderPlugin} This Loader plugin.
836836
*/

src/loader/filetypes/AudioFile.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var HTML5AudioFile = require('./HTML5AudioFile');
2525
* @param {string} url - [description]
2626
* @param {string} path - [description]
2727
* @param {object} xhrSettings - [description]
28-
* @param {[type]} audioContext - [description]
28+
* @param {AudioContext} audioContext - [description]
2929
*/
3030
var AudioFile = new Class({
3131

@@ -38,7 +38,7 @@ var AudioFile = new Class({
3838
/**
3939
* [description]
4040
*
41-
* @property {[type]} context
41+
* @property {AudioContext} context
4242
* @since 3.0.0
4343
*/
4444
this.context = audioContext;
@@ -62,7 +62,7 @@ var AudioFile = new Class({
6262
* @method Phaser.Loader.FileTypes.AudioFile#onProcess
6363
* @since 3.0.0
6464
*
65-
* @param {[type]} callback - [description]
65+
* @param {function} callback - [description]
6666
*/
6767
onProcess: function (callback)
6868
{
@@ -128,7 +128,7 @@ AudioFile.create = function (loader, key, urls, config, xhrSettings)
128128

129129
/**
130130
* Adds an Audio file to the current load queue.
131-
*
131+
*
132132
* Note: This method will only be available if the Audio File type has been built into Phaser.
133133
*
134134
* The file is **not** loaded immediately after calling this method.
@@ -141,7 +141,7 @@ AudioFile.create = function (loader, key, urls, config, xhrSettings)
141141
* @param {string|string[]} urls - [description]
142142
* @param {object} config - [description]
143143
* @param {object} xhrSettings - [description]
144-
*
144+
*
145145
* @return {Phaser.Loader.LoaderPlugin} The Loader.
146146
*/
147147
FileTypesManager.register('audio', function (key, urls, config, xhrSettings)

0 commit comments

Comments
 (0)