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
8aca450f
Commit
8aca450f
authored
Aug 13, 2006
by
John Resig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Applied patch provided by Taku Sano fixing the compression errors.
parent
6a47e283
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
ajax.js
ajax/ajax.js
+3
-2
event.js
event/event.js
+4
-4
No files found.
ajax/ajax.js
View file @
8aca450f
...
@@ -210,16 +210,17 @@ jQuery.extend({
...
@@ -210,16 +210,17 @@ jQuery.extend({
// If an array was passed in, assume that it is an array
// If an array was passed in, assume that it is an array
// of form elements
// of form elements
if
(
a
.
constructor
==
Array
)
if
(
a
.
constructor
==
Array
)
{
// Serialize the form elements
// Serialize the form elements
for
(
var
i
=
0
;
i
<
a
.
length
;
i
++
)
for
(
var
i
=
0
;
i
<
a
.
length
;
i
++
)
s
.
push
(
a
[
i
].
name
+
"="
+
encodeURIComponent
(
a
[
i
].
value
)
);
s
.
push
(
a
[
i
].
name
+
"="
+
encodeURIComponent
(
a
[
i
].
value
)
);
// Otherwise, assume that it's an object of key/value pairs
// Otherwise, assume that it's an object of key/value pairs
else
}
else
{
// Serialize the key/values
// Serialize the key/values
for
(
var
j
in
a
)
for
(
var
j
in
a
)
s
.
push
(
j
+
"="
+
encodeURIComponent
(
a
[
j
]
)
);
s
.
push
(
j
+
"="
+
encodeURIComponent
(
a
[
j
]
)
);
}
// Return the resulting serialization
// Return the resulting serialization
return
s
.
join
(
"&"
);
return
s
.
join
(
"&"
);
...
...
event/event.js
View file @
8aca450f
...
@@ -1616,7 +1616,7 @@ new function(){
...
@@ -1616,7 +1616,7 @@ new function(){
});
});
};
};
}
}
;
// If Mozilla is used
// If Mozilla is used
if
(
jQuery
.
browser
.
mozilla
||
jQuery
.
browser
.
opera
)
{
if
(
jQuery
.
browser
.
mozilla
||
jQuery
.
browser
.
opera
)
{
...
@@ -1657,9 +1657,9 @@ new function(){
...
@@ -1657,9 +1657,9 @@ new function(){
jQuery
.
ready
();
jQuery
.
ready
();
}
}
},
10
);
},
10
);
}
else
{
// A fallback to window.onload, that will always work
jQuery
.
event
.
add
(
window
,
"load"
,
jQuery
.
ready
);
}
}
// A fallback to window.onload, that will always work
jQuery
.
event
.
add
(
window
,
"load"
,
jQuery
.
ready
);
}
}
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