mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 23:24:41 +00:00
Fixed a reference error to the Loader.baseURL in Cache._resolveUrl method (thanks @neurofuzzy #1235)
This commit is contained in:
parent
967497c572
commit
9140163c85
2 changed files with 8 additions and 4 deletions
|
@ -93,6 +93,7 @@ Version 2.1.3 - "Ravinda" - in development
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Fixed a reference error to the Loader.baseURL in Cache._resolveUrl method (thanks @neurofuzzy #1235)
|
||||||
|
|
||||||
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
|
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
|
||||||
|
|
||||||
|
|
|
@ -1469,21 +1469,24 @@ Phaser.Cache.prototype = {
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Resolves a url its absolute form.
|
* Resolves a URL to its absolute form.
|
||||||
*
|
*
|
||||||
* @method Phaser.Cache#_resolveUrl
|
* @method Phaser.Cache#_resolveUrl
|
||||||
* @param {string} url - The url to resolve.
|
* @param {string} url - The URL to resolve.
|
||||||
|
* @return {string} The resolved URL.
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
_resolveUrl: function (url) {
|
_resolveUrl: function (url) {
|
||||||
this._urlResolver.src = this.game.load.baseUrl + url;
|
|
||||||
|
this._urlResolver.src = this.game.load.baseURL + url;
|
||||||
|
|
||||||
this._urlTemp = this._urlResolver.src;
|
this._urlTemp = this._urlResolver.src;
|
||||||
|
|
||||||
// ensure no request is actually made
|
// Ensure no request is actually made
|
||||||
this._urlResolver.src = '';
|
this._urlResolver.src = '';
|
||||||
|
|
||||||
return this._urlTemp;
|
return this._urlTemp;
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue