Comparing version 0.0.8 to 0.0.9
@@ -98,6 +98,6 @@ function truncateTextNode ( | ||
if (rootElement.scrollHeight <= maximumHeight) { | ||
return | ||
return false | ||
} | ||
truncateElementNode( | ||
return truncateElementNode( | ||
rootElement, | ||
@@ -104,0 +104,0 @@ rootElement, |
{ | ||
"name": "line-clamp", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "Line clamp a DOM element in vanilla JavaScript.", | ||
@@ -12,8 +12,8 @@ "author": "Lim Yuan Qing", | ||
"devDependencies": { | ||
"concurrently": "^3.5.1", | ||
"concurrently": "^4.1.0", | ||
"ecstatic": "^3.2.0", | ||
"gzip-size-cli": "^2.1.0", | ||
"opn-cli": "^3.1.0", | ||
"gzip-size-cli": "^3.0.0", | ||
"opn-cli": "^4.0.0", | ||
"prettier-standard": "^8.0.0", | ||
"standard": "^11.0.0", | ||
"standard": "^12.0.1", | ||
"uglify-js": "^3.3.12", | ||
@@ -20,0 +20,0 @@ "watchify": "^3.11.0" |
@@ -58,2 +58,4 @@ # line-clamp [![npm Version](http://img.shields.io/npm/v/line-clamp.svg?style=flat)](https://www.npmjs.com/package/line-clamp) [![Build Status](https://img.shields.io/travis/yuanqing/line-clamp.svg?branch=master&style=flat)](https://travis-ci.org/yuanqing/line-clamp) | ||
Returns `true` if text was truncated, else returns `false`. | ||
`options` is an optional object literal. | ||
@@ -60,0 +62,0 @@ |
Sorry, the diff of this file is not supported yet
183843
89