Skip to content
Commit 2b1c80ea authored by Daniel Calviño Sánchez's avatar Daniel Calviño Sánchez
Browse files

Check number of elements instead of if the jQuery object is defined



Tje jQuery object created through "$('#testArea .toastify')" will be
always defined even if no elements were found, so the check does not
really work; instead, it should be checked the number of elements found.

Signed-off-by: default avatarDaniel Calviño Sánchez <danxuliu@gmail.com>
parent 323f40a4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment