Skip to content

Commit

Permalink
Merge pull request #603 from michaellenahan/master
Browse files Browse the repository at this point in the history
Test for jQuery.hasOwnProperty('active')
  • Loading branch information
jhedstrom authored Jan 8, 2022
2 parents c92cfe9 + 5c25008 commit 971b9e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drupal/DrupalExtension/Context/MinkContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ function isAjaxing(instance) {
return (
// Assert no AJAX request is running (via jQuery or Drupal) and no
// animation is running.
(typeof jQuery === 'undefined' || (jQuery.active === 0 && jQuery(':animated').length === 0)) &&
(typeof jQuery === 'undefined' || jQuery.hasOwnProperty('active') === false || (jQuery.active === 0 && jQuery(':animated').length === 0)) &&
d7_not_ajaxing && d8_not_ajaxing
);
}());
Expand Down

0 comments on commit 971b9e1

Please sign in to comment.