Skip to content

Commit

Permalink
Merge pull request #4 from TranslucentComputing/pr-flag-was-used
Browse files Browse the repository at this point in the history
returns a flag telling whether the lib was used or not
  • Loading branch information
yuanqing authored Dec 22, 2018
2 parents 05ad0e7 + 01a742c commit c1deb14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ module.exports = function (rootElement, lineCount, options) {

// Exit if text does not overflow `rootElement`.
if (rootElement.scrollHeight <= maximumHeight) {
return
return false
}

truncateElementNode(
return truncateElementNode(
rootElement,
rootElement,
maximumHeight,
Expand Down

0 comments on commit c1deb14

Please sign in to comment.