Selector: Eliminate selector.js depenencies from various modules

There are two main reasons for why some of those dependencies are no longer
needed:
1. `jQuery.contains` which is now a part of `core`.
2. `jQuery.find.attr` no longer exists, native `getAttribute` is used instead.

Closes gh-5383
Ref gh-5379
This commit is contained in:
Michał Gołębiowski-Owczarek 2024-01-04 01:06:40 +01:00 committed by GitHub
parent 99151d7ab0
commit e8b7db4b0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 0 additions and 7 deletions

View File

@ -4,8 +4,6 @@ import { nodeName } from "../core/nodeName.js";
import { rnothtmlwhite } from "../var/rnothtmlwhite.js";
import { isIE } from "../var/isIE.js";
import "../selector.js";
jQuery.fn.extend( {
attr: function( name, value ) {
return access( this, jQuery.attr, name, value, arguments.length > 1 );

View File

@ -2,8 +2,6 @@ import { jQuery } from "../core.js";
import { access } from "../core/access.js";
import { isIE } from "../var/isIE.js";
import "../selector.js";
var rfocusable = /^(?:input|select|textarea|button)$/i,
rclickable = /^(?:a|area)$/i;

View File

@ -17,7 +17,6 @@ import { support } from "./css/support.js";
import "./core/init.js";
import "./core/ready.js";
import "./selector.js"; // contains
var

View File

@ -15,7 +15,6 @@ import { nodeName } from "./core/nodeName.js";
import "./core/init.js";
import "./traversing.js";
import "./selector.js";
import "./event.js";
var

View File

@ -5,7 +5,6 @@ import { isWindow } from "./var/isWindow.js";
import "./core/init.js";
import "./css.js";
import "./selector.js"; // contains
jQuery.offset = {
setOffset: function( elem, options, i ) {