Comparing version 0.1.5 to 0.1.6
@@ -32,3 +32,3 @@ (function (global, factory) { | ||
// If already short enough, we're done | ||
if (el.offsetHeight < maxHeight) break; | ||
if (el.offsetHeight < maxHeight) continue; | ||
@@ -39,3 +39,3 @@ var fullText = el.textContent; | ||
// If 0 or 1 words, we're done | ||
if (words.length < 2) break; | ||
if (words.length < 2) continue; | ||
@@ -42,0 +42,0 @@ // Binary search for number of words which can fit in allotted height |
{ | ||
"name": "shave", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "Shave is a javascript plugin that truncates multi-line text within a html element based on set max height", | ||
@@ -5,0 +5,0 @@ "main": "dist/shave.js", |
8155