Closed paul-muckypuddle closed 8 years ago
What exactly does the li
contain? If it contained a number an easy fix would be to just cast this number to a string.
@paul-muckypuddle Any update on this? An isolated test case would be ideal, because I can't seem to reproduce the error.
My apologies, I found a workaround at the time to get the project I was working on finished. Will review this again and update as soon as possible.
On 14 August 2015 at 13:30, Sacha Schmid notifications@github.com wrote:
@paul-muckypuddle https://github.com/paul-muckypuddle Any update on this? An isolated test case would be ideal, because I can't seem to reproduce the error.
— Reply to this email directly or view it on GitHub https://github.com/RadLikeWhoa/Countable/issues/34#issuecomment-131093154 .
Paul Holmes | Technical Director 0141 847 0095 | paul@muckypuddle.com https://www.facebook.com/muckypuddle https://twitter.com/muckypuddle http://www.pinterest.com/muckypuddle/ http://www.linkedin.com/company/mucky-puddle
This issue is resolved in 097b189.
When using countable on an li element with a value, the following error occurs (in Chrome):
Tracing this back it's because the li element value is a number, and obviously the replace function belongs to the string prototype. Adding:
around line 177 is a kludgy fix... but not great.