From b548fed5a8e3e8766f38d4a51154d4c36f18ed12 Mon Sep 17 00:00:00 2001 From: Cam Song Date: Wed, 13 Jan 2016 18:02:20 +0800 Subject: [PATCH] Update README.md fix #76 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bcfede4..3f590cd 100644 --- a/README.md +++ b/README.md @@ -366,7 +366,7 @@ In place of common selectors like class, id or attribute we can use `document.qu // Native function getHeight(el) { - const styles = this.getComputedStyles(el); + const styles = window.getComputedStyle(el); const height = el.offsetHeight; const borderTopWidth = parseFloat(styles.borderTopWidth); const borderBottomWidth = parseFloat(styles.borderBottomWidth);