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
c9267ab0
Commit
c9267ab0
authored
May 03, 2013
by
Jason Bedard
Committed by
Dave Methvin
May 09, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only call jQuery(this) when needed. Close gh-1260.
parent
47f56f16
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
.mailmap
.mailmap
+1
-0
AUTHORS.txt
AUTHORS.txt
+1
-0
attributes.js
src/attributes.js
+2
-3
No files found.
.mailmap
View file @
c9267ab0
...
@@ -33,6 +33,7 @@ Isaac Z. Schlueter <i@izs.me>
...
@@ -33,6 +33,7 @@ Isaac Z. Schlueter <i@izs.me>
Ismail Khair <ismail.khair@gmail.com>
Ismail Khair <ismail.khair@gmail.com>
James Burke <jrburke@gmail.com>
James Burke <jrburke@gmail.com>
James Padolsey <cla@padolsey.net> <jamespadolsey@gmail.com>
James Padolsey <cla@padolsey.net> <jamespadolsey@gmail.com>
Jason Bedard <jason+jquery@jbedard.ca> <github@jbedard.ca>
Jay Merrifield <fracmak@gmail.com>
Jay Merrifield <fracmak@gmail.com>
Jay Merrifield <fracmak@gmail.com> <jmerrifiel@gannett.com>
Jay Merrifield <fracmak@gmail.com> <jmerrifiel@gannett.com>
Jean Boussier <jean.boussier@gmail.com>
Jean Boussier <jean.boussier@gmail.com>
...
...
AUTHORS.txt
View file @
c9267ab0
...
@@ -167,3 +167,4 @@ Michał Gołębiowski <m.goleb@gmail.com>
...
@@ -167,3 +167,4 @@ Michał Gołębiowski <m.goleb@gmail.com>
Steven Benner <admin@stevenbenner.com>
Steven Benner <admin@stevenbenner.com>
Li Xudong <istonelee@gmail.com>
Li Xudong <istonelee@gmail.com>
Renato Oliveira dos Santos <ros3@cin.ufpe.br>
Renato Oliveira dos Santos <ros3@cin.ufpe.br>
Jason Bedard <jason+jquery@jbedard.ca>
src/attributes.js
View file @
c9267ab0
...
@@ -182,15 +182,14 @@ jQuery.fn.extend({
...
@@ -182,15 +182,14 @@ jQuery.fn.extend({
isFunction
=
jQuery
.
isFunction
(
value
);
isFunction
=
jQuery
.
isFunction
(
value
);
return
this
.
each
(
function
(
i
)
{
return
this
.
each
(
function
(
i
)
{
var
val
,
var
val
;
self
=
jQuery
(
this
);
if
(
this
.
nodeType
!==
1
)
{
if
(
this
.
nodeType
!==
1
)
{
return
;
return
;
}
}
if
(
isFunction
)
{
if
(
isFunction
)
{
val
=
value
.
call
(
this
,
i
,
self
.
val
()
);
val
=
value
.
call
(
this
,
i
,
jQuery
(
this
)
.
val
()
);
}
else
{
}
else
{
val
=
value
;
val
=
value
;
}
}
...
...
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