From f9258903b78e570e1a2dec050c3143b5600d30d8 Mon Sep 17 00:00:00 2001 From: isAlive Date: Thu, 9 Jan 2020 14:22:15 +0800 Subject: [PATCH] fix(js):undefine (#591) * fix(js):undefine * fix(js):undefine --- .gitignore | 2 ++ source/js/animation.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 4e2a447..33f4965 100644 --- a/.gitignore +++ b/.gitignore @@ -108,3 +108,5 @@ dist _config*.yml* yarn.lock + +.idea \ No newline at end of file diff --git a/source/js/animation.js b/source/js/animation.js index 0824e58..f147d8b 100644 --- a/source/js/animation.js +++ b/source/js/animation.js @@ -3,7 +3,7 @@ return Array.prototype.slice.call(document.querySelectorAll.apply(document, arguments)); } - if ($('.columns .column-right-shadow').length && !$('.columns .column-right-shadow')[0].children.length) { + if ($('.columns .column-right').length && $('.columns .column-right-shadow').length && !$('.columns .column-right-shadow')[0].children.length) { for (const child of $('.columns .column-right')[0].children) { $('.columns .column-right-shadow')[0].append(child.cloneNode(true)); }