var messages_left = $('.messages__wrapper').children().size();
If children returns null, this fails with:
messageclose.js?v=1:16 Uncaught TypeError: $(...).children(...).size is not a function
at HTMLDivElement.<anonymous> (messageclose.js?v=1:16)
at HTMLDivElement.d.complete (jquery.min.js?v=3.2.1:3)| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3121802-2.patch | 839 bytes | anisha.challa |
Comments
Comment #2
anisha.challa commentedHi,
I have atatched a patch. Please review the same.
Thanks.
Comment #3
Christopher Riley commentedThank you for the patch it cleared up an issue that I was having.
Comment #4
malaynayak commentedComment #5
malaynayak commentedpatch #2 looks good.
Comment #6
bwaindwain commentedlooks good
Comment #8
penyaskitoI've used this myself on production for a long time.
Committed and pushed to 8.x-1.x, thanks!