Skip to content

Commit 9140163

Browse files
committed
Fixed a reference error to the Loader.baseURL in Cache._resolveUrl method (thanks @neurofuzzy phaserjs#1235)
1 parent 967497c commit 9140163

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ Version 2.1.3 - "Ravinda" - in development
9393

9494
### Bug Fixes
9595

96+
* Fixed a reference error to the Loader.baseURL in Cache._resolveUrl method (thanks @neurofuzzy #1235)
9697

9798
For details about changes made in previous versions of Phaser see the full Change Log at https://github.com/photonstorm/phaser/blob/master/CHANGELOG.md
9899

src/loader/Cache.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1469,21 +1469,24 @@ Phaser.Cache.prototype = {
14691469
},
14701470

14711471
/**
1472-
* Resolves a url its absolute form.
1472+
* Resolves a URL to its absolute form.
14731473
*
14741474
* @method Phaser.Cache#_resolveUrl
1475-
* @param {string} url - The url to resolve.
1475+
* @param {string} url - The URL to resolve.
1476+
* @return {string} The resolved URL.
14761477
* @private
14771478
*/
14781479
_resolveUrl: function (url) {
1479-
this._urlResolver.src = this.game.load.baseUrl + url;
1480+
1481+
this._urlResolver.src = this.game.load.baseURL + url;
14801482

14811483
this._urlTemp = this._urlResolver.src;
14821484

1483-
// ensure no request is actually made
1485+
// Ensure no request is actually made
14841486
this._urlResolver.src = '';
14851487

14861488
return this._urlTemp;
1489+
14871490
},
14881491

14891492
/**

0 commit comments

Comments
 (0)