From 3c6489f387b8d71f07740fddc9eea782ce480b52 Mon Sep 17 00:00:00 2001 From: Reto Kaiser Date: Tue, 9 Dec 2014 10:54:14 +0100 Subject: [PATCH] Rename "original" to "originalHeight" for clarity --- jquery.autosize.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jquery.autosize.js b/jquery.autosize.js index 2e40a91..7ead374 100644 --- a/jquery.autosize.js +++ b/jquery.autosize.js @@ -157,7 +157,7 @@ // Using mainly bare JS in this function because it is going // to fire very often while typing, and needs to very efficient. function adjust() { - var height, original; + var height, originalHeight; if (mirrored !== ta) { initMirror(); @@ -176,7 +176,7 @@ mirror.value += options.append || ''; mirror.style.overflowY = ta.style.overflowY; - original = parseFloat(ta.style.height) || 0; + originalHeight = parseFloat(ta.style.height) || 0; // Setting scrollTop to zero is needed in IE8 and lower for the next step to be accurately applied mirror.scrollTop = 0; @@ -198,7 +198,7 @@ height += boxOffset; - if (original !== height) { + if (originalHeight !== height) { ta.style.height = height + 'px'; // Trigger a repaint for IE8 for when ta is nested 2 or more levels inside an inline-block