Skip to content

armgit / anime

Public Imported from GitHub
0

JavaScript animation engine

Change variable name from seekCild -> seekChild

Riley Gowan8fc492ac7b95
diff --git a/lib/anime.es.js b/lib/anime.es.js
index e25346f3..035eed68 100644
--- a/lib/anime.es.js
+++ b/lib/anime.es.js
@@ -951,15 +951,15 @@ function anime(params) {
lastTime = adjustTime(instance.currentTime) * (1 / anime.speed);
}
- function seekCild(time, child) {
+ function seekChild(time, child) {
if (child) { child.seek(time - child.timelineOffset); }
}
function syncInstanceChildren(time) {
if (!instance.reversePlayback) {
- for (var i = 0; i < childrenLength; i++) { seekCild(time, children[i]); }
+ for (var i = 0; i < childrenLength; i++) { seekChild(time, children[i]); }
} else {
- for (var i$1 = childrenLength; i$1--;) { seekCild(time, children[i$1]); }
+ for (var i$1 = childrenLength; i$1--;) { seekChild(time, children[i$1]); }
}
}
diff --git a/lib/anime.js b/lib/anime.js
index 7d3d1c1c..b65bee3f 100644
--- a/lib/anime.js
+++ b/lib/anime.js
@@ -953,15 +953,15 @@ function anime(params) {
lastTime = adjustTime(instance.currentTime) * (1 / anime.speed);
}
- function seekCild(time, child) {
+ function seekChild(time, child) {
if (child) { child.seek(time - child.timelineOffset); }
}
function syncInstanceChildren(time) {
if (!instance.reversePlayback) {
- for (var i = 0; i < childrenLength; i++) { seekCild(time, children[i]); }
+ for (var i = 0; i < childrenLength; i++) { seekChild(time, children[i]); }
} else {
- for (var i$1 = childrenLength; i$1--;) { seekCild(time, children[i$1]); }
+ for (var i$1 = childrenLength; i$1--;) { seekChild(time, children[i$1]); }
}
}
diff --git a/src/index.js b/src/index.js
index f06be1ea..e053928e 100644
--- a/src/index.js
+++ b/src/index.js
@@ -931,15 +931,15 @@ function anime(params = {}) {
lastTime = adjustTime(instance.currentTime) * (1 / anime.speed);
}
- function seekCild(time, child) {
+ function seekChild(time, child) {
if (child) child.seek(time - child.timelineOffset);
}
function syncInstanceChildren(time) {
if (!instance.reversePlayback) {
- for (let i = 0; i < childrenLength; i++) seekCild(time, children[i]);
+ for (let i = 0; i < childrenLength; i++) seekChild(time, children[i]);
} else {
- for (let i = childrenLength; i--;) seekCild(time, children[i]);
+ for (let i = childrenLength; i--;) seekChild(time, children[i]);
}
}