Open okikio opened 2 years ago
After re-looking though the problem I've determined that the issue I had doesn't require an infinite loop limit, I still believe we should apply a loop limit to the getDuration()
method, but it's not required for my problem.
If you'd like to see the problem I aiming to fix, here is a Codepen, https://codepen.io/okikio/pen/GRMeapZ?editors=0010
cc @RafaelKr
The way the
getDuration()
method in thespring()
function is setup it doesn't have any way of stopping an infinite loop. I added aINTINITE_LOOP_LIMIT
of 10,000 to stop possible infinite loop situations.