minor tweak...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2019-01-02 05:51:04 +03:00
parent c0ca5bc13e
commit 38505aa948

View File

@ -153,6 +153,11 @@ actions.Actions({
var steps = this.direction_change_steps
var direction = this.__direction || new Array(steps)
// normalize length...
direction = direction.length > steps ?
direction.slice(0, steps)
: direction
// value ends with '!' -> force direction change...
direction = (value.endsWith('!')
&& direction[0] != value.slice(0, -1)) ?