You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loader.useXDomainRequest boolean added. If true (the default is false) it will use XDomainRequest when loading JSON files instead of xhr. In rare IE edge-cases this may be required. You'll know if you need it (phaserjs#1131phaserjs#1116)
* Device will now detect for Cordova (thanks @videlais#1102)
80
80
* Arcade Physics Body.skipQuadTree is a new boolean that if set to `true` when you collide the Sprite against a Group it will tell Phaser to skip using a QuadTree for that collision. This is handy if this Body is especially large.
81
81
* Arcade Physics World.skipQuadTree will disable the use of all QuadTrees in collision methods, which can help performance in tightly packed scenes.
* Loader.useXDomainRequest boolean added. If `true` (the default is `false`) it will use XDomainRequest when loading JSON files instead of xhr. In rare IE edge-cases this may be required. You'll know if you need it (#1131#1116)
Copy file name to clipboardExpand all lines: src/loader/Loader.js
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -99,6 +99,12 @@ Phaser.Loader = function (game) {
99
99
*/
100
100
this.onPackComplete=newPhaser.Signal();
101
101
102
+
/**
103
+
* @property {boolean} useXDomainRequest - If true and if the browser supports XDomainRequest, it will be used in preference for xhr. You'll know if you need this or not.
104
+
* @default
105
+
*/
106
+
this.useXDomainRequest=false;
107
+
102
108
/**
103
109
* @property {array} _packList - Contains all the assets packs.
0 commit comments