From 46840d6dd5b444957e2d00652a3a1811e88e0e7c Mon Sep 17 00:00:00 2001 From: Maddix Date: Thu, 19 Oct 2017 11:27:57 -0400 Subject: [PATCH] Removed unnecessary check on array. --- src/bootstrap-maxlength.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap-maxlength.js b/src/bootstrap-maxlength.js index e991a2a..87f73b3 100755 --- a/src/bootstrap-maxlength.js +++ b/src/bootstrap-maxlength.js @@ -127,7 +127,7 @@ for ( var removedBytes = 0, bytesPastMax = utf8Length(text) - maxlength - ;removedBytes < bytesPastMax && indexedSize.length > 0 + ;removedBytes < bytesPastMax ;removedBytes += indexedSize.pop() ); maxlength -= (maxlength - indexedSize.length);