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
e392e557
Commit
e392e557
authored
Jan 25, 2013
by
Oleg
Committed by
Dave Methvin
Jan 31, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change variables initialization sequence for some declarations
parent
dc931af8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
21 deletions
+21
-21
attributes.js
src/attributes.js
+1
-1
callbacks.js
src/callbacks.js
+5
-5
core.js
src/core.js
+3
-3
event.js
src/event.js
+8
-8
manipulation.js
src/manipulation.js
+4
-4
No files found.
src/attributes.js
View file @
e392e557
...
...
@@ -166,7 +166,7 @@ jQuery.fn.extend({
},
val
:
function
(
value
)
{
var
hooks
,
ret
,
isFunction
,
var
ret
,
hooks
,
isFunction
,
elem
=
this
[
0
];
if
(
!
arguments
.
length
)
{
...
...
src/callbacks.js
View file @
e392e557
...
...
@@ -40,18 +40,18 @@ jQuery.Callbacks = function( options ) {
(
optionsCache
[
options
]
||
createOptions
(
options
)
)
:
jQuery
.
extend
(
{},
options
);
var
// Last fire value (for non-forgettable lists)
var
// Flag to know if list is currently firing
firing
,
// Last fire value (for non-forgettable lists)
memory
,
// Flag to know if list was already fired
fired
,
// Flag to know if list is currently firing
firing
,
// First callback to fire (used internally by add and fireWith)
firingStart
,
// End of the loop when firing
firingLength
,
// Index of currently firing callback (modified by remove if needed)
firingIndex
,
// End of the loop when firing
firingLength
,
// Actual callback list
list
=
[],
// Stack of fire calls for repeatable lists
...
...
src/core.js
View file @
e392e557
...
...
@@ -93,7 +93,7 @@ jQuery.fn = jQuery.prototype = {
constructor
:
jQuery
,
init
:
function
(
selector
,
context
,
rootjQuery
)
{
var
match
,
elem
;
var
elem
,
match
;
// HANDLE: $(""), $(null), $(undefined), $(false)
if
(
!
selector
)
{
...
...
@@ -288,7 +288,7 @@ jQuery.fn = jQuery.prototype = {
jQuery
.
fn
.
init
.
prototype
=
jQuery
.
fn
;
jQuery
.
extend
=
jQuery
.
fn
.
extend
=
function
()
{
var
options
,
name
,
src
,
copy
,
copyIsArray
,
clone
,
var
copy
,
options
,
src
,
copyIsArray
,
name
,
clone
,
target
=
arguments
[
0
]
||
{},
i
=
1
,
length
=
arguments
.
length
,
...
...
@@ -770,7 +770,7 @@ jQuery.extend({
// Bind a function to a context, optionally partially applying any
// arguments.
proxy
:
function
(
fn
,
context
)
{
var
tmp
,
args
,
proxy
;
var
args
,
proxy
,
tmp
;
if
(
typeof
context
===
"string"
)
{
tmp
=
fn
[
context
];
...
...
src/event.js
View file @
e392e557
...
...
@@ -22,9 +22,9 @@ jQuery.event = {
add
:
function
(
elem
,
types
,
handler
,
data
,
selector
)
{
var
handleObjIn
,
eventHandle
,
tmp
,
events
,
t
,
handleObj
,
special
,
handlers
,
type
,
namespaces
,
origType
,
var
handleObjIn
,
tmp
,
eventHandle
,
t
,
handleObj
,
special
,
events
,
handlers
,
type
,
namespaces
,
origType
,
elemData
=
jQuery
.
_data
(
elem
);
// Don't attach events to noData or text/comment nodes (but allow plain objects)
...
...
@@ -133,8 +133,8 @@ jQuery.event = {
// Detach an event or set of events from an element
remove
:
function
(
elem
,
types
,
handler
,
selector
,
mappedTypes
)
{
var
j
,
origCount
,
tmp
,
events
,
t
,
handleObj
,
var
events
,
handleObj
,
tmp
,
j
,
t
,
origCount
,
special
,
handlers
,
type
,
namespaces
,
origType
,
elemData
=
jQuery
.
hasData
(
elem
)
&&
jQuery
.
_data
(
elem
);
...
...
@@ -206,7 +206,7 @@ jQuery.event = {
trigger
:
function
(
event
,
data
,
elem
,
onlyHandlers
)
{
var
i
,
cur
,
tmp
,
bubbleType
,
ontype
,
handle
,
special
,
var
i
,
handle
,
ontype
,
bubbleType
,
tmp
,
special
,
cur
,
eventPath
=
[
elem
||
document
],
type
=
event
.
type
||
event
,
namespaces
=
event
.
namespace
?
event
.
namespace
.
split
(
"."
)
:
[];
...
...
@@ -343,7 +343,7 @@ jQuery.event = {
// Make a writable jQuery.Event from the native event object
event
=
jQuery
.
event
.
fix
(
event
);
var
i
,
j
,
ret
,
matched
,
handleObj
,
var
ret
,
j
,
handleObj
,
matched
,
i
,
handlerQueue
=
[],
args
=
core_slice
.
call
(
arguments
),
handlers
=
(
jQuery
.
_data
(
this
,
"events"
)
||
{}
)[
event
.
type
]
||
[],
...
...
@@ -876,7 +876,7 @@ if ( !jQuery.support.focusinBubbles ) {
jQuery
.
fn
.
extend
({
on
:
function
(
types
,
selector
,
data
,
fn
,
/*INTERNAL*/
one
)
{
var
origFn
,
type
;
var
type
,
origFn
;
// Types can be a map of types/handlers
if
(
typeof
types
===
"object"
)
{
...
...
src/manipulation.js
View file @
e392e557
...
...
@@ -285,7 +285,7 @@ jQuery.fn.extend({
// Flatten any nested arrays
args
=
core_concat
.
apply
(
[],
args
);
var
fragment
,
first
,
scripts
,
hasScripts
,
node
,
doc
,
var
scripts
,
node
,
doc
,
fragment
,
hasScripts
,
first
,
i
=
0
,
l
=
this
.
length
,
set
=
this
,
...
...
@@ -559,7 +559,7 @@ function fixDefaultChecked( elem ) {
jQuery
.
extend
({
clone
:
function
(
elem
,
dataAndEvents
,
deepDataAndEvents
)
{
var
destElements
,
srcElements
,
node
,
i
,
clone
,
var
clone
,
node
,
srcElements
,
i
,
destElements
,
inPage
=
jQuery
.
contains
(
elem
.
ownerDocument
,
elem
);
if
(
jQuery
.
support
.
html5Clone
||
jQuery
.
isXMLDoc
(
elem
)
||
!
rnoshimcache
.
test
(
"<"
+
elem
.
nodeName
+
">"
)
)
{
...
...
@@ -614,7 +614,7 @@ jQuery.extend({
},
buildFragment
:
function
(
elems
,
context
,
scripts
,
selection
)
{
var
contains
,
elem
,
tag
,
tmp
,
wrap
,
tbody
,
j
,
var
contains
,
elem
,
j
,
tmp
,
tag
,
wrap
,
tbody
,
l
=
elems
.
length
,
// Ensure a safe fragment
...
...
@@ -740,7 +740,7 @@ jQuery.extend({
},
cleanData
:
function
(
elems
,
/* internal */
acceptData
)
{
var
data
,
id
,
elem
,
type
,
var
elem
,
id
,
type
,
data
,
i
=
0
,
internalKey
=
jQuery
.
expando
,
cache
=
jQuery
.
cache
,
...
...
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