Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/animatable/animatable.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class Animatable {
let paused = true;
for (let name in this.animations) {
const anim = this.animations[name];
if (!anim.paused && paused) {
if (!anim.paused) {
paused = false;
break;
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/units.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const convertValueUnit = (el, decomposedValue, unit, force = false) => {
decomposedValue.n = convertedValue;
convertedValuesCache[cachedKey] = convertedValue;
}
decomposedValue.t === valueTypes.UNIT;
decomposedValue.t = valueTypes.UNIT;
decomposedValue.u = unit;
return decomposedValue;
}
4 changes: 2 additions & 2 deletions src/waapi/composition.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const removeWAAPIAnimation = ($el, property, parent) => {
* @param {String} property
* @param {PropertyIndexedKeyframes} keyframes
* @param {KeyframeAnimationOptions} params
* @retun {globalThis.Animation}
* @return {globalThis.Animation}
*/
export const addWAAPIAnimation = (parent, $el, property, keyframes, params) => {
const animation = $el.animate(keyframes, params);
Expand All @@ -74,7 +74,7 @@ export const addWAAPIAnimation = (parent, $el, property, keyframes, params) => {
parent.animations.push(animation);
removeWAAPIAnimation($el, property);
addChild(WAAPIAnimationsLookups, { parent, animation, $el, property, _next: null, _prev: null });
const handleRemove = () => { removeWAAPIAnimation($el, property, parent); };
const handleRemove = () => removeWAAPIAnimation($el, property, parent);
animation.oncancel = handleRemove;
animation.onremove = handleRemove;
if (!parent.persist) {
Expand Down