Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
e3777b64
Commit
e3777b64
authored
Apr 07, 2013
by
Michał Gołębiowski
Committed by
Richard Gibson
Apr 08, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No ticket: Move jQuery.fn.size to deprecated. Close gh-1229.
parent
8594decf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
core.js
src/core.js
+0
-5
deprecated.js
src/deprecated.js
+7
-0
traversing.js
src/traversing.js
+0
-2
No files found.
src/core.js
View file @
e3777b64
...
...
@@ -208,11 +208,6 @@ jQuery.fn = jQuery.prototype = {
// The default length of a jQuery object is 0
length
:
0
,
// The number of elements contained in the matched element set
size
:
function
()
{
return
this
.
length
;
},
toArray
:
function
()
{
return
core_slice
.
call
(
this
);
},
...
...
src/deprecated.js
View file @
e3777b64
// Limit scope pollution from any deprecated API
// (function() {
// The number of elements contained in the matched element set
jQuery
.
fn
.
size
=
function
()
{
return
this
.
length
;
};
jQuery
.
fn
.
andSelf
=
jQuery
.
fn
.
addBack
;
// })();
src/traversing.js
View file @
e3777b64
...
...
@@ -132,8 +132,6 @@ jQuery.fn.extend({
}
});
jQuery
.
fn
.
andSelf
=
jQuery
.
fn
.
addBack
;
function
sibling
(
cur
,
dir
)
{
do
{
cur
=
cur
[
dir
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment