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
0935f4a0
Commit
0935f4a0
authored
Dec 19, 2008
by
John Resig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing remaining strict-mode warnings.
parent
77344f4c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
core.js
src/core.js
+3
-3
event.js
src/event.js
+3
-2
offset.js
src/offset.js
+1
-1
No files found.
src/core.js
View file @
0935f4a0
...
...
@@ -680,7 +680,7 @@ jQuery.extend({
// Return the named cache data, or the ID for the element
return
name
?
jQuery
.
cache
[
id
][
name
]
:
jQuery
.
cache
[
id
][
name
]
||
null
:
id
;
},
...
...
@@ -1163,12 +1163,12 @@ jQuery.extend({
// Also, we need to make sure that the correct elements are being returned
// (IE returns comment nodes in a '*' query)
if
(
jQuery
.
browser
.
msie
)
{
while
(
elem
=
second
[
i
++
]
)
while
(
(
elem
=
second
[
i
++
])
)
if
(
elem
.
nodeType
!=
8
)
first
[
pos
++
]
=
elem
;
}
else
while
(
elem
=
second
[
i
++
]
)
while
(
(
elem
=
second
[
i
++
])
)
first
[
pos
++
]
=
elem
;
return
first
;
...
...
src/event.js
View file @
0935f4a0
...
...
@@ -40,8 +40,9 @@ jQuery.event = {
handle
=
jQuery
.
data
(
elem
,
"handle"
)
||
jQuery
.
data
(
elem
,
"handle"
,
function
(){
// Handle the second event of a trigger and when
// an event is called after a page has unloaded
if
(
typeof
jQuery
!==
"undefined"
&&
!
jQuery
.
event
.
triggered
)
return
jQuery
.
event
.
handle
.
apply
(
arguments
.
callee
.
elem
,
arguments
);
return
typeof
jQuery
!==
"undefined"
&&
!
jQuery
.
event
.
triggered
?
jQuery
.
event
.
handle
.
apply
(
arguments
.
callee
.
elem
,
arguments
)
:
undefined
;
});
// Add elem as a property of the handle function
// This is to prevent a memory leak with non-native
...
...
src/offset.js
View file @
0935f4a0
...
...
@@ -131,7 +131,7 @@ jQuery.each( ['Left', 'Top'], function(i, name) {
var
method
=
'scroll'
+
name
;
jQuery
.
fn
[
method
]
=
function
(
val
)
{
if
(
!
this
[
0
])
return
;
if
(
!
this
[
0
])
return
null
;
return
val
!==
undefined
?
...
...
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