修复全屏的回调问题

This commit is contained in:
Harvey Zack committed 2018-11-05 17:16:23 +08:00
1 parent 1616d67bce
commit 8d5ba73b0b
8 files changed
+65 -45

No files matched your search

+1 -2
View File
@@ -116,10 +116,9 @@ export function sublings(target) {
return Array.from(target.parentElement.children).filter(item => item !== target);
}
export function debounce(func, wait, scope) {
export function debounce(func, wait, context) {
let timeout;
return function fn() {
const context = scope || this;
const args = arguments;
const later = function later() {
timeout = null;