Skip to content

Commit

Permalink
Test for jQuery.hasOwnProperty('active')
Browse files Browse the repository at this point in the history
  • Loading branch information
michaellenahan authored Jan 7, 2022
1 parent c92cfe9 commit 5c25008
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 5c25008

Please sign in to comment.