Abacus/Abacus — Issue #58: Tween get() function does not evaluate correctly at preferredIndex of 0
Author: andrewdolce
Created: 2011-10-19 15:05:59+00:00
State: open

Currently the abacus.tween.get( preferredIndex ) function compares the preferredIndex with the tween object's index property and uses the non-false value. This means that if the index stores a nonzero value, the function result is wrong for a preferredIndex of 0.

Example:

aTween.get(0); // evals correctly
aTween.get(0.5); // evals correctly
aTween.get(0); // evals incorrectly, instead outputting tween result for 0.5