Skip to content

Commit 208c77f

Browse files
authored
Merge pull request phaserjs#3 from photonstorm/master
getting up to date with master again
2 parents 946857f + 009dad2 commit 208c77f

14 files changed

Lines changed: 590 additions & 75 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,14 @@
44

55
### New Features
66

7+
* `Line.GetEasedPoints` is a new function that will take a Line, a quantity, and an ease function, and returns an array of points where each point has been spaced out across the length of the Line based on the ease function given.
8+
* `XHRSettings.withCredentials` is a new boolean property that controls the `withCredentials` setting of the XHR Request made by the Loader. It indicates whether or not cross-site Access-Control requests should be made using credentials such as cookies, authorization headers or TLS client certificates. You can set this on a per-file basis, or global in the Game Config.
9+
* `Config.loaderWithCredentials` is the new global setting for `XHRSettings.withCredentials`.
10+
711
### Updates
812

13+
* `XHRLoader` will now use the `XHRSettings.withCredentials` as set in the file or global loader config.
14+
915
### Bug Fixes
1016

1117
* The conditional checking if the `PathFollower` was at the end of the path or not was incorrect (thanks @samme)

src/core/Config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,11 @@ var Config = new Class({
480480
*/
481481
this.loaderTimeout = GetValue(config, 'loader.timeout', 0);
482482

483+
/**
484+
* @const {boolean} Phaser.Core.Config#loaderWithCredentials - Optional XHR withCredentials value.
485+
*/
486+
this.loaderWithCredentials = GetValue(config, 'loader.withCredentials', false);
487+
483488
/*
484489
* Allows `plugins` property to either be an array, in which case it just replaces
485490
* the default plugins like previously, or a config object.

0 commit comments

Comments
 (0)