Closed bensmithett closed 11 years ago
In this example...
<textarea>foo</textarea>
counter.all returns 3 when a user deletes everything from the textarea (expect it to return 0)
counter.all
3
0
In the old orig assignment an empty string is evaluating to false so it moves on to the next option, this.element.innerText
orig
this.element.innerText
Nice, good catch.
In this example...
counter.all
returns3
when a user deletes everything from the textarea (expect it to return0
)In the old
orig
assignment an empty string is evaluating to false so it moves on to the next option,this.element.innerText