From 1d99ae60bbd7c7160410dfed39cae69c6ba28f3f Mon Sep 17 00:00:00 2001 From: Taylor Everding Date: Tue, 23 Mar 2021 13:27:13 -0600 Subject: [PATCH] Remove object shorthand Shorthand properties are not available in pre-es2015 environments. By removing them, react-charty supports more environments. --- src/charty.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/charty.js b/src/charty.js index bdd2dc2..c2cdd69 100644 --- a/src/charty.js +++ b/src/charty.js @@ -1345,11 +1345,11 @@ var Charty = (function () { update ? update(from) : A[name] = from animations[name] = { ease: ease || EASE.outQuad, - from, - to, - duration, - update, - cb + from: from, + to: to, + duration: duration, + update: update, + cb: cb } }