Skip to content

Commit 4fa99f5

Browse files
committed
jsdocs fix and video loader fallback for Firefox.
1 parent 4cd3746 commit 4fa99f5

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

src/loader/Loader.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1461,7 +1461,7 @@ Phaser.Loader.prototype = {
14611461
* for previous assets to load (unless they are sync-points). Resources, such as packs, may still
14621462
* be downloaded around sync-points, as long as they do not finalize loading.
14631463
*
1464-
* @method Phader.Loader#withSyncPoints
1464+
* @method Phaser.Loader#withSyncPoints
14651465
* @param {function} callback - The callback is invoked and is supplied with a single argument: the loader.
14661466
* @param {object} [callbackContext=(loader)] - Context for the callback.
14671467
* @return {Phaser.Loader} This Loader instance.
@@ -1484,9 +1484,9 @@ Phaser.Loader.prototype = {
14841484
*
14851485
* This has no effect on already loaded assets.
14861486
*
1487-
* @method Phader.Loader#withSyncPoints
1488-
* @param {function} callback - The callback is invoked and is supplied with a single argument: the loader.
1489-
* @param {object} [callbackContext=(loader)] - Context for the callback.
1487+
* @method Phaser.Loader#addSyncPoint
1488+
* @param {string} type - The type of resource to turn into a sync point (image, audio, xml, etc).
1489+
* @param {string} key - Key of the file you want to turn into a sync point.
14901490
* @return {Phaser.Loader} This Loader instance.
14911491
* @see {@link Phaser.Loader#withSyncPoint withSyncPoint}
14921492
*/
@@ -2041,8 +2041,6 @@ Phaser.Loader.prototype = {
20412041
*/
20422042
loadVideoTag: function (file) {
20432043

2044-
console.log('loadVideoTag', file.key);
2045-
20462044
var _this = this;
20472045

20482046
file.data = document.createElement("video");
@@ -2051,8 +2049,7 @@ Phaser.Loader.prototype = {
20512049
file.data.autoplay = false;
20522050

20532051
var playThroughEvent = function () {
2054-
console.log('playThroughEvent', file.data.name);
2055-
// file.data.removeEventListener('canplay', playThroughEvent, false);
2052+
// console.log('playThroughEvent', file.data.name);
20562053
file.data.removeEventListener('canplaythrough', playThroughEvent, false);
20572054
file.data.onerror = null;
20582055
file.data.canplay = true;
@@ -2061,7 +2058,7 @@ Phaser.Loader.prototype = {
20612058
};
20622059

20632060
var loadedDataEvent = function () {
2064-
console.log('loadedDataEvent', file.data.name);
2061+
// console.log('loadedDataEvent', file.data.name);
20652062
file.data.removeEventListener('loadeddata', loadedDataEvent, false);
20662063
file.data.onerror = null;
20672064
file.data.canplay = false;

0 commit comments

Comments
 (0)