Issue #3238868: Refactor jquery parents function.
Closes #3238868
Merge request reports
Activity
Filter activity
- Resolved by Ahsan Nazir
- Resolved by Ahsan Nazir
added 120 commits
-
6e73c27f...93b747d5 - 106 commits from branch
project:11.x
- 93b747d5...144cd436 - 4 earlier commits
- 8cf85b51 - refactor parents function.
- c367d204 - revert contexual.js.
- 4c242990 - refactor parents function.
- 96f0dc62 - refactor parents function.
- 438cdb41 - fix js lint error.
- 36166613 - refactor parents function.
- d54c395c - refactor parents function.
- 48375750 - refactor parents function.
- 7752a693 - refactor parents function.
- f8f77e70 - add eslintrc.jquery.json
Toggle commit list-
6e73c27f...93b747d5 - 106 commits from branch
1380 1399 // Attach all JavaScript behaviors to the new content, if it was 1381 1400 // successfully added to the page, this if statement allows 1382 1401 // `#ajax['wrapper']` to be optional. 1383 if ($newContent.parents('html').length) { 1402 const newContent = getElementParents($newContent[0], 'html'); 1403 if (newContent.length) { here we should be using contains() https://developer.mozilla.org/en-US/docs/Web/API/Node/contains
changed this line in version 24 of the diff
Please register or sign in to reply