Skip to content

Commit 4f7d2c8

Browse files
committed
$.context deprecated
# `$.context` deprecated as of jQuery v.1.10, removed as of jQuery v.3.0 This was the only use of the `$.context` so I changed it to `$.get(0).` which should continue to work in future versions of jQuery.
1 parent cd13092 commit 4f7d2c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/security.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@
557557
grecaptchaRenderCallback = [];
558558
$forms.each(function () {
559559
var $form = $(this),
560-
config = $form.context.validationConfig || false;
560+
config = $form.get(0).validationConfig || false;
561561
if (config) {
562562

563563
$('[data-validation~="recaptcha"]', $form).each(function () {

0 commit comments

Comments
 (0)