]> source.dussan.org Git - nextcloud-server.git/commit
Check number of elements instead of if the jQuery object is defined
authorDaniel Calviño Sánchez <danxuliu@gmail.com>
Fri, 26 Jul 2019 15:40:44 +0000 (17:40 +0200)
committerDaniel Calviño Sánchez <danxuliu@gmail.com>
Fri, 26 Jul 2019 16:46:51 +0000 (18:46 +0200)
commit2b1c80ea3f742014ea7e45d6a5408fd94a5d80b4
tree0d8222e9e3a2f1d90a8d48777e35991399b408e7
parent323f40a49374af02feca7d21da986b36a7d559e2
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: Daniel Calviño Sánchez <danxuliu@gmail.com>
core/js/tests/specs/coreSpec.js