Skip to content

Commit

Permalink
Handle undefined options in updateTimingHandler (flackr#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesodland authored Dec 30, 2023
1 parent 8362c3e commit fa54f02
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/proxy-animation.js
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,9 @@ function createProxyEffect(details) {
};
const updateTimingHandler = {
apply: function(target, thisArg, argumentsList) {
if (!argumentsList || !argumentsList.length)
return;

// Additional validation that is specific to scroll timelines.
if (details.timeline) {
const options = argumentsList[0];
Expand Down

0 comments on commit fa54f02

Please sign in to comment.