return play() result

This commit is contained in:
Harvey committed 2021-12-01 10:39:44 +08:00
1 parent 3f21ce9223
commit 2c83ea4760
10 files changed
+52 -18

No files matched your search

+5
View File
@@ -77,3 +77,8 @@ export function isInViewport(el, offset = 0) {
export function includeFromEvent(event, target) {
return event.composedPath && event.composedPath().indexOf(target) > -1;
}
export function replaceElement(newChild, oldChild) {
oldChild.parentNode.replaceChild(newChild, oldChild);
return newChild;
}