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
17d8df8e
Commit
17d8df8e
authored
Mar 18, 2014
by
Benjy Cui
Committed by
Dave Methvin
Mar 20, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Core: Fix comments for .get() method
Closes gh-1547 (cherry picked from commit
ca0086b5
)
parent
c51f9f76
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
AUTHORS.txt
AUTHORS.txt
+2
-0
core.js
src/core.js
+2
-2
No files found.
AUTHORS.txt
View file @
17d8df8e
...
@@ -208,3 +208,5 @@ Forbes Lindesay <forbes@lindesay.co.uk>
...
@@ -208,3 +208,5 @@ Forbes Lindesay <forbes@lindesay.co.uk>
John Paul <john@johnkpaul.com>
John Paul <john@johnkpaul.com>
S. Andrew Sheppard <andrew@wq.io>
S. Andrew Sheppard <andrew@wq.io>
Roman Reiß <me@silverwind.io>
Roman Reiß <me@silverwind.io>
Benjy Cui <benjytrys@gmail.com>
src/core.js
View file @
17d8df8e
...
@@ -54,10 +54,10 @@ jQuery.fn = jQuery.prototype = {
...
@@ -54,10 +54,10 @@ jQuery.fn = jQuery.prototype = {
get
:
function
(
num
)
{
get
:
function
(
num
)
{
return
num
!=
null
?
return
num
!=
null
?
// Return
a 'clean' array
// Return
just the one element from the set
(
num
<
0
?
this
[
num
+
this
.
length
]
:
this
[
num
]
)
:
(
num
<
0
?
this
[
num
+
this
.
length
]
:
this
[
num
]
)
:
// Return
just the object
// Return
all the elements in a clean array
slice
.
call
(
this
);
slice
.
call
(
this
);
},
},
...
...
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