From 303c63512ea5dc7648e00b54a0c1ecd12658ce15 Mon Sep 17 00:00:00 2001 From: "Kyungwook, Park" Date: Thu, 22 Sep 2016 14:53:19 +0900 Subject: [PATCH] Update index.js typeof document.body.getBoundingClientRect == "object" in IE8 (Related issue : https://github.com/zeroclipboard/zeroclipboard/issues/190) --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index acc971f..975513c 100644 --- a/index.js +++ b/index.js @@ -31,7 +31,7 @@ function getBoundingClientRect (node) { node = range; } - if ('function' === typeof node.getBoundingClientRect) { + if (node.getBoundingClientRect) { rect = node.getBoundingClientRect(); if (node.startContainer && rect.left === 0 && rect.top === 0) {