update docs

This commit is contained in:
Harvey Zack committed 2018-11-09 15:25:56 +08:00
1 parent 2a933206dc
commit 4fbb3442e0
10 files changed
+83 -36

No files matched your search

+5
View File
@@ -123,6 +123,11 @@ export function sublings(target) {
return Array.from(target.parentElement.children).filter(item => item !== target);
}
export function inverseClass(target, className) {
sublings(target).forEach(item => item.classList.remove(className));
target.classList.add(className);
}
export function debounce(func, wait, context) {
let timeout;
function fn() {