Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
fix #76
  • Loading branch information
camsong committed Jan 13, 2016
1 parent 131c87d commit b548fed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b548fed

Please sign in to comment.