mimo84/bootstrap-maxlength — pull request #22 by bmajewski (2013-09-05 19:30:48+00:00)
Title: When called from here we are dealing with the count and not the input

the remainingChars function expects the actual input, and is called as such from other locations. When within updateMaxLengthHTML, we already have the input length, so we can skip the function call (and the resulting error message) and do the subtraction inline.