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
af961d58
Commit
af961d58
authored
Oct 15, 2006
by
John Resig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed all warnings generated when javascript.options.strict is enabled in Firefox about:config.
parent
e7669f64
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
ajax.js
src/ajax/ajax.js
+1
-1
event.js
src/event/event.js
+1
-1
jquery.js
src/jquery/jquery.js
+8
-5
No files found.
src/ajax/ajax.js
View file @
af961d58
...
@@ -688,7 +688,7 @@ jQuery.extend({
...
@@ -688,7 +688,7 @@ jQuery.extend({
var
dataType
=
type
.
dataType
;
var
dataType
=
type
.
dataType
;
var
global
=
typeof
type
.
global
==
"boolean"
?
type
.
global
:
true
;
var
global
=
typeof
type
.
global
==
"boolean"
?
type
.
global
:
true
;
var
timeout
=
typeof
type
.
timeout
==
"number"
?
type
.
timeout
:
jQuery
.
timeout
;
var
timeout
=
typeof
type
.
timeout
==
"number"
?
type
.
timeout
:
jQuery
.
timeout
;
var
ifModified
=
type
.
ifModified
||
false
;
ifModified
=
type
.
ifModified
||
false
;
data
=
type
.
data
;
data
=
type
.
data
;
url
=
type
.
url
;
url
=
type
.
url
;
type
=
type
.
type
;
type
=
type
.
type
;
...
...
src/event/event.js
View file @
af961d58
...
@@ -1600,7 +1600,7 @@ new function(){
...
@@ -1600,7 +1600,7 @@ new function(){
// Add the event
// Add the event
jQuery
.
event
.
add
(
this
,
o
,
function
(
e
){
jQuery
.
event
.
add
(
this
,
o
,
function
(
e
){
// If this function has already been executed, stop
// If this function has already been executed, stop
if
(
count
++
)
return
;
if
(
count
++
)
return
true
;
// And execute the bound function
// And execute the bound function
return
f
.
apply
(
this
,
[
e
]);
return
f
.
apply
(
this
,
[
e
]);
...
...
src/jquery/jquery.js
View file @
af961d58
...
@@ -28,7 +28,7 @@ window.undefined = window.undefined;
...
@@ -28,7 +28,7 @@ window.undefined = window.undefined;
* @name jQuery
* @name jQuery
* @cat Core
* @cat Core
*/
*/
jQuery
=
function
(
a
,
c
)
{
function
jQuery
(
a
,
c
)
{
// Shortcut for document ready (because $(document).each() is silly)
// Shortcut for document ready (because $(document).each() is silly)
if
(
a
&&
typeof
a
==
"function"
&&
jQuery
.
fn
.
ready
)
if
(
a
&&
typeof
a
==
"function"
&&
jQuery
.
fn
.
ready
)
...
@@ -63,13 +63,15 @@ jQuery = function(a,c) {
...
@@ -63,13 +63,15 @@ jQuery = function(a,c) {
// Find the matching elements and save them for later
// Find the matching elements and save them for later
jQuery
.
find
(
a
,
c
)
);
jQuery
.
find
(
a
,
c
)
);
// See if an extra function was provided
// See if an extra function was provided
var
fn
=
arguments
[
arguments
.
length
-
1
];
var
fn
=
arguments
[
arguments
.
length
-
1
];
// If so, execute it in context
// If so, execute it in context
if
(
fn
&&
typeof
fn
==
"function"
)
if
(
fn
&&
typeof
fn
==
"function"
)
this
.
each
(
fn
);
this
.
each
(
fn
);
};
return
this
;
}
// Map over the $ in case of overwrite
// Map over the $ in case of overwrite
if
(
typeof
$
!=
"undefined"
)
if
(
typeof
$
!=
"undefined"
)
...
@@ -1031,6 +1033,7 @@ jQuery.fn = jQuery.prototype = {
...
@@ -1031,6 +1033,7 @@ jQuery.fn = jQuery.prototype = {
for
(
var
i
=
0
;
i
<
t
.
length
;
i
++
)
for
(
var
i
=
0
;
i
<
t
.
length
;
i
++
)
if
(
jQuery
.
filter
(
t
[
i
],[
a
]).
r
.
length
)
if
(
jQuery
.
filter
(
t
[
i
],[
a
]).
r
.
length
)
return
a
;
return
a
;
return
false
;
})
||
})
||
t
.
constructor
==
Boolean
&&
t
.
constructor
==
Boolean
&&
...
@@ -2233,12 +2236,12 @@ jQuery.extend({
...
@@ -2233,12 +2236,12 @@ jQuery.extend({
},
},
handle
:
function
(
event
)
{
handle
:
function
(
event
)
{
if
(
typeof
jQuery
==
"undefined"
)
return
;
if
(
typeof
jQuery
==
"undefined"
)
return
false
;
event
=
event
||
jQuery
.
event
.
fix
(
window
.
event
);
event
=
event
||
jQuery
.
event
.
fix
(
window
.
event
);
// If no correct event was found, fail
// If no correct event was found, fail
if
(
!
event
)
return
;
if
(
!
event
)
return
false
;
var
returnValue
=
true
;
var
returnValue
=
true
;
...
...
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