mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +00:00
Loader.useXDomainRequest used to be enabled automatically for IE9 but is now always set to false
. Please enable it only if you know your server set-up / CDN requires it, as some most certainly do, but we're finding them to be less and less used these days, so we feel it's safe to now disable this by default (#1248)
Loader.json was using the wrong context in IE9 with XDomainRequest calls (thanks @pnstickne #1258)
This commit is contained in:
parent
0f3cda0aed
commit
da87c75e00
2 changed files with 5 additions and 3 deletions
|
@ -84,12 +84,14 @@ Version 2.1.4 - "Bethal" - in development
|
|||
* TypeScript definitions fixes and updates (thanks @clark-stevenson)
|
||||
* Cache._resolveUrl has been renamed to Cache._resolveURL internally and gained a new parameter. This method is a private internal one.
|
||||
* Cache.getUrl is deprecated. The same method is now available as Cache.getURL.
|
||||
* Loader.useXDomainRequest used to be enabled automatically for IE9 but is now always set to `false`. Please enable it only if you know your server set-up / CDN requires it, as some most certainly do, but we're finding them to be less and less used these days, so we feel it's safe to now disable this by default (#1248)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Tilemaps in WebGL wouldn't update after the first frame due to a subtle change in how Pixi uploads new textures to the GPU.
|
||||
* XML files weren't being added to the URL map.
|
||||
* Cache._resolveURL was causing a Sound double-load in Firefox and causing errors (thanks @domonyiv #1253)
|
||||
* Loader.json was using the wrong context in IE9 with XDomainRequest calls (thanks @pnstickne #1258)
|
||||
|
||||
|
||||
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
|
||||
|
|
|
@ -99,9 +99,9 @@ Phaser.Loader = function (game) {
|
|||
this.onPackComplete = new Phaser.Signal();
|
||||
|
||||
/**
|
||||
* @property {boolean} useXDomainRequest - If true and if the browser supports XDomainRequest, it will be used in preference for xhr when loading json files. It is enabled automatically if the browser is IE9, but you can disable it as required.
|
||||
* @property {boolean} useXDomainRequest - If true and if the browser supports XDomainRequest, it will be used in preference for xhr when loading json files. This is only relevant for IE9 when you know your server/CDN requires it.
|
||||
*/
|
||||
this.useXDomainRequest = (this.game.device.ieVersion === 9);
|
||||
this.useXDomainRequest = false;
|
||||
|
||||
/**
|
||||
* @property {array} _packList - Contains all the assets packs.
|
||||
|
@ -1299,7 +1299,7 @@ Phaser.Loader.prototype = {
|
|||
// Note: The xdr.send() call is wrapped in a timeout to prevent an issue with the interface where some requests are lost
|
||||
// if multiple XDomainRequests are being sent at the same time.
|
||||
setTimeout(function () {
|
||||
this._ajax.send();
|
||||
_this._ajax.send();
|
||||
}, 0);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue