Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Merge requests
!384
Issue
#2705327
: Failed to execute 'contains' on 'Node'
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Issue
#2705327
: Failed to execute 'contains' on 'Node'
issue/drupal-2705327:2705327-failed-to-execute
into
9.2.x
Overview
0
Commits
4
Pipelines
0
Changes
2
Open
Abhisek Mazumdar
requested to merge
issue/drupal-2705327:2705327-failed-to-execute
into
9.2.x
4 years ago
Overview
0
Commits
4
Pipelines
0
Changes
2
Expand
0
0
Merge request reports
Compare
9.2.x
version 2
09d2bf8c
4 years ago
version 1
32afb750
4 years ago
9.2.x (HEAD)
and
latest version
latest version
67027a4f
4 commits,
4 years ago
version 2
09d2bf8c
3 commits,
4 years ago
version 1
32afb750
1 commit,
4 years ago
2 files
+
24
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
core/misc/ajax.es6.js
+
19
−
6
Options
@@ -209,8 +209,8 @@
* };
*
* // This command will remove this Ajax object from the page.
* myAjaxObject.commands.destroyObject = function (ajax, response,
status) {
*
Drupal.ajax.instances[this.instanceIndex] = null;
* myAjaxObject.commands.destroyObject = function (ajax, response,
*
status) {
Drupal.ajax.instances[this.instanceIndex] = null;
* };
*
* // Programmatically trigger the Ajax request.
@@ -273,12 +273,25 @@
* The list of expired {@link Drupal.Ajax} objects.
*/
Drupal
.
ajax
.
expired
=
function
()
{
return
Drupal
.
ajax
.
instances
.
filter
(
(
instance
)
=>
return
Drupal
.
ajax
.
instances
.
filter
(
(
instance
)
=>
{
if
(
instance
&&
instance
.
element
!==
false
&&
!
document
.
body
.
contains
(
instance
.
element
),
);
!
(
instance
.
element
instanceof
HTMLElement
)
)
{
Drupal
.
throwError
(
new
Error
(
Drupal
.
t
(
'
TypeError: instance.element is not a HTMLElement
'
),
),
);
}
return
(
instance
&&
instance
.
element
!==
false
&&
instance
.
element
instanceof
HTMLElement
&&
!
document
.
body
.
contains
(
instance
.
element
)
);
});
};
/**
Loading