mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 08:51:20 -08:00
return play() result
This commit is contained in:
1 parent
3f21ce9223
commit
2c83ea4760
10 files changed
+52
-18
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user