Skip to content

Commit 2c3f132

Browse files
committed
Updated jsdocs (all XHR parameters are optional in Phaser.Loader.FileTypes)
1 parent 1be486f commit 2c3f132

19 files changed

Lines changed: 25 additions & 25 deletions

src/loader/filetypes/AnimationJSONFile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var JSONFile = require('./JSONFile.js');
1616
* @param {string} key - The key of the file within the loader.
1717
* @param {string} url - The url to load the file from.
1818
* @param {string} path - The path of the file.
19-
* @param {XHRSettingsObject} xhrSettings - Optional file specific XHR settings.
19+
* @param {XHRSettingsObject} [xhrSettings] - Optional file specific XHR settings.
2020
*
2121
* @return {Phaser.Loader.FileTypes.AnimationJSONFile} A File instance to be added to the Loader.
2222
*/

src/loader/filetypes/AtlasJSONFile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ var JSONFile = require('./JSONFile.js');
1818
* @param {string} textureURL - The url to load the texture file from.
1919
* @param {string} atlasURL - The url to load the atlas file from.
2020
* @param {string} path - The path of the file.
21-
* @param {XHRSettingsObject} textureXhrSettings - Optional texture file specific XHR settings.
22-
* @param {XHRSettingsObject} atlasXhrSettings - Optional atlas file specific XHR settings.
21+
* @param {XHRSettingsObject} [textureXhrSettings] - Optional texture file specific XHR settings.
22+
* @param {XHRSettingsObject} [atlasXhrSettings] - Optional atlas file specific XHR settings.
2323
*
2424
* @return {object} An object containing two File objects to be added to the loader.
2525
*/

src/loader/filetypes/AudioFile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ var HTML5AudioFile = require('./HTML5AudioFile');
2424
* @param {string} key - [description]
2525
* @param {string} url - [description]
2626
* @param {string} path - [description]
27-
* @param {XHRSettingsObject} xhrSettings - [description]
28-
* @param {AudioContext} audioContext - [description]
27+
* @param {XHRSettingsObject} [xhrSettings] - [description]
28+
* @param {AudioContext} [audioContext] - [description]
2929
*/
3030
var AudioFile = new Class({
3131

src/loader/filetypes/BinaryFile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var GetFastValue = require('../../utils/object/GetFastValue');
2323
* @param {string} key - [description]
2424
* @param {string} url - [description]
2525
* @param {string} path - [description]
26-
* @param {XHRSettingsObject} xhrSettings - [description]
26+
* @param {XHRSettingsObject} [xhrSettings] - [description]
2727
*/
2828
var BinaryFile = new Class({
2929

src/loader/filetypes/BitmapFontFile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ var XMLFile = require('./XMLFile.js');
1818
* @param {string} textureURL - The url to load the texture file from.
1919
* @param {string} xmlURL - The url to load the atlas file from.
2020
* @param {string} path - The path of the file.
21-
* @param {XHRSettingsObject} textureXhrSettings - Optional texture file specific XHR settings.
22-
* @param {XHRSettingsObject} xmlXhrSettings - Optional atlas file specific XHR settings.
21+
* @param {XHRSettingsObject} [textureXhrSettings] - Optional texture file specific XHR settings.
22+
* @param {XHRSettingsObject} [xmlXhrSettings] - Optional atlas file specific XHR settings.
2323
*
2424
* @return {object} An object containing two File objects to be added to the loader.
2525
*/

src/loader/filetypes/GLSLFile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var GetFastValue = require('../../utils/object/GetFastValue');
2323
* @param {string} key - [description]
2424
* @param {string} url - [description]
2525
* @param {string} path - [description]
26-
* @param {XHRSettingsObject} xhrSettings - [description]
26+
* @param {XHRSettingsObject} [xhrSettings] - [description]
2727
*/
2828
var GLSLFile = new Class({
2929

src/loader/filetypes/HTML5AudioFile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var GetURL = require('../GetURL');
2222
* @param {string} key - [description]
2323
* @param {string} url - [description]
2424
* @param {string} path - [description]
25-
* @param {XHRSettingsObject} config - [description]
25+
* @param {XHRSettingsObject} [config] - [description]
2626
*/
2727
var HTML5AudioFile = new Class({
2828

src/loader/filetypes/HTMLFile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var GetFastValue = require('../../utils/object/GetFastValue');
2525
* @param {number} width - [description]
2626
* @param {number} height - [description]
2727
* @param {string} path - [description]
28-
* @param {XHRSettingsObject} xhrSettings - [description]
28+
* @param {XHRSettingsObject} [xhrSettings] - [description]
2929
*/
3030
var HTMLFile = new Class({
3131

src/loader/filetypes/ImageFile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ var GetFastValue = require('../../utils/object/GetFastValue');
2323
* @param {string} key - [description]
2424
* @param {string} url - [description]
2525
* @param {string} path - [description]
26-
* @param {XHRSettingsObject} xhrSettings - [description]
27-
* @param {object} config - [description]
26+
* @param {XHRSettingsObject} [xhrSettings] - [description]
27+
* @param {object} [config] - [description]
2828
*/
2929
var ImageFile = new Class({
3030

src/loader/filetypes/JSONFile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var GetFastValue = require('../../utils/object/GetFastValue');
2323
* @param {string} key - [description]
2424
* @param {string} url - [description]
2525
* @param {string} path - [description]
26-
* @param {XHRSettingsObject} xhrSettings - [description]
26+
* @param {XHRSettingsObject} [xhrSettings] - [description]
2727
*/
2828
var JSONFile = new Class({
2929

0 commit comments

Comments
 (0)