mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
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:
parent
99151d7ab0
commit
e8b7db4b0f
@ -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 );
|
||||
|
@ -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;
|
||||
|
||||
|
@ -17,7 +17,6 @@ import { support } from "./css/support.js";
|
||||
|
||||
import "./core/init.js";
|
||||
import "./core/ready.js";
|
||||
import "./selector.js"; // contains
|
||||
|
||||
var
|
||||
|
||||
|
@ -15,7 +15,6 @@ import { nodeName } from "./core/nodeName.js";
|
||||
|
||||
import "./core/init.js";
|
||||
import "./traversing.js";
|
||||
import "./selector.js";
|
||||
import "./event.js";
|
||||
|
||||
var
|
||||
|
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user