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

This commit is contained in:
photonstorm 2014-10-15 21:36:44 +01:00
parent 967497c572
commit 9140163c85
2 changed files with 8 additions and 4 deletions

View file

@ -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

View file

@ -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;
}, },
/** /**