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
e083d15f
Commit
e083d15f
authored
Dec 21, 2009
by
jeresig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweaked a couple cases where == was used instead of ===.
parent
209751fc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
event.js
src/event.js
+2
-2
manipulation.js
src/manipulation.js
+1
-1
queue.js
src/queue.js
+2
-2
support.js
src/support.js
+1
-1
No files found.
src/event.js
View file @
e083d15f
...
@@ -389,7 +389,7 @@ jQuery.event = {
...
@@ -389,7 +389,7 @@ jQuery.event = {
event.metaKey = event.ctrlKey;
event.metaKey = event.ctrlKey;
}
}
// Add which for click: 1 ==
left; 2 == middle; 3
== right
// Add which for click: 1 ==
= left; 2 === middle; 3 =
== right
// Note: button is not normalized, so don't use it
// Note: button is not normalized, so don't use it
if ( !event.which && event.button !== undefined ) {
if ( !event.which && event.button !== undefined ) {
event.which = (event.button & 1 ? 1 : ( event.button & 2 ? 3 : ( event.button & 4 ? 2 : 0 ) ));
event.which = (event.button & 1 ? 1 : ( event.button & 2 ? 3 : ( event.button & 4 ? 2 : 0 ) ));
...
@@ -755,7 +755,7 @@ jQuery.each(["bind", "one"], function(i, name) {
...
@@ -755,7 +755,7 @@ jQuery.each(["bind", "one"], function(i, name) {
data = undefined;
data = undefined;
}
}
fn = thisObject === undefined ? fn : jQuery.event.proxy( fn, thisObject );
fn = thisObject === undefined ? fn : jQuery.event.proxy( fn, thisObject );
var handler = name == "
one
" ? jQuery.event.proxy( fn, function( event ) {
var handler = name ==
=
"
one
" ? jQuery.event.proxy( fn, function( event ) {
jQuery( this ).unbind( event, handler );
jQuery( this ).unbind( event, handler );
return fn.apply( this, arguments );
return fn.apply( this, arguments );
}) : fn;
}) : fn;
...
...
src/manipulation.js
View file @
e083d15f
...
@@ -416,7 +416,7 @@ jQuery.extend({
...
@@ -416,7 +416,7 @@ jQuery.extend({
div
.
firstChild
&&
div
.
firstChild
.
childNodes
:
div
.
firstChild
&&
div
.
firstChild
.
childNodes
:
// String was a bare <thead> or <tfoot>
// String was a bare <thead> or <tfoot>
wrap
[
1
]
==
"<table>"
&&
!
hasBody
?
wrap
[
1
]
==
=
"<table>"
&&
!
hasBody
?
div
.
childNodes
:
div
.
childNodes
:
[];
[];
...
...
src/queue.js
View file @
e083d15f
...
@@ -27,7 +27,7 @@ jQuery.extend({
...
@@ -27,7 +27,7 @@ jQuery.extend({
if
(
fn
)
{
if
(
fn
)
{
// Add a progress sentinel to prevent the fx queue from being
// Add a progress sentinel to prevent the fx queue from being
// automatically dequeued
// automatically dequeued
if
(
type
==
"fx"
)
{
queue
.
unshift
(
"inprogress"
);
}
if
(
type
==
=
"fx"
)
{
queue
.
unshift
(
"inprogress"
);
}
fn
.
call
(
elem
,
function
()
{
jQuery
.
dequeue
(
elem
,
type
);
});
fn
.
call
(
elem
,
function
()
{
jQuery
.
dequeue
(
elem
,
type
);
});
}
}
...
@@ -47,7 +47,7 @@ jQuery.fn.extend({
...
@@ -47,7 +47,7 @@ jQuery.fn.extend({
return
this
.
each
(
function
(
i
,
elem
){
return
this
.
each
(
function
(
i
,
elem
){
var
queue
=
jQuery
.
queue
(
this
,
type
,
data
);
var
queue
=
jQuery
.
queue
(
this
,
type
,
data
);
if
(
type
==
"fx"
&&
queue
[
0
]
!==
"inprogress"
)
{
if
(
type
==
=
"fx"
&&
queue
[
0
]
!==
"inprogress"
)
{
jQuery
.
dequeue
(
this
,
type
);
jQuery
.
dequeue
(
this
,
type
);
}
}
});
});
...
...
src/support.js
View file @
e083d15f
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
jQuery
.
support
=
{
jQuery
.
support
=
{
// IE strips leading whitespace when .innerHTML is used
// IE strips leading whitespace when .innerHTML is used
leadingWhitespace
:
div
.
firstChild
.
nodeType
==
3
,
leadingWhitespace
:
div
.
firstChild
.
nodeType
==
=
3
,
// Make sure that tbody elements aren't automatically inserted
// Make sure that tbody elements aren't automatically inserted
// IE will insert them into empty tables
// IE will insert them into empty tables
...
...
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