Swapped to use GetValue instead.

This commit is contained in:
Richard Davey 2019-04-08 11:45:08 +01:00
parent c89f9a9fde
commit 00638ae9ee
2 changed files with 3 additions and 4 deletions

View file

@ -77,6 +77,7 @@ Notes:
* `Graphics.fillPoints` has renamed the second argument from `autoClose` to `closeShape`. There is also a new third argument `closePath`, which defaults to `true` and automatically closes the path before filling it. The `endIndex` argument is now the fourth argument, instead of the third.
* Calling `Texture.destroy` will now call `TextureManager.removeKey` to ensure the key is removed from the manager, should you destroy a texture directly, rather than going via `TextureManager.remove`. Fix #4461 (thanks @BigZaphod)
* `SpriteSheetFromAtlas` now adds in a `__BASE` entry for the Sprite Sheet it creates, keeping it consistent with the other frame parsers (thanks @Cirras)
* The `from` and `to` properties in the PathFollower Config can now be used to set the span of the follow duration (thanks @kensleebos)
### Bug Fixes

View file

@ -230,10 +230,8 @@ var PathFollower = new Class({
}
// Override in case they've been specified in the config
config.from = config.from || 0;
config.to = config.to || 1;
// Can also read extra values out of the config:
config.from = GetValue(config, 'from', 0);
config.to = GetValue(config, 'to', 1);
var positionOnPath = GetBoolean(config, 'positionOnPath', false);