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
57f56be0
Commit
57f56be0
authored
Apr 28, 2011
by
rwldrn
Committed by
timmywil
Apr 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make cached rspaces regex definitions consistent. Fixes #9008
parent
632cd6c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
ajax.js
src/ajax.js
+3
-3
event.js
src/event.js
+2
-2
No files found.
src/ajax.js
View file @
57f56be0
...
@@ -13,7 +13,7 @@ var r20 = /%20/g,
...
@@ -13,7 +13,7 @@ var r20 = /%20/g,
rquery
=
/
\?
/
,
rquery
=
/
\?
/
,
rscript
=
/<script
\b[^
<
]
*
(?:(?!
<
\/
script>
)
<
[^
<
]
*
)
*<
\/
script>/gi
,
rscript
=
/<script
\b[^
<
]
*
(?:(?!
<
\/
script>
)
<
[^
<
]
*
)
*<
\/
script>/gi
,
rselectTextarea
=
/^
(?:
select|textarea
)
/i
,
rselectTextarea
=
/^
(?:
select|textarea
)
/i
,
rspaces
Ajax
=
/
\s
+/
,
rspaces
=
/
\s
+/
,
rts
=
/
([
?&
])
_=
[^
&
]
*/
,
rts
=
/
([
?&
])
_=
[^
&
]
*/
,
rurl
=
/^
([\w\+\.\-]
+:
)(?:\/\/([^\/
?#:
]
*
)(?:
:
(\d
+
))?)?
/
,
rurl
=
/^
([\w\+\.\-]
+:
)(?:\/\/([^\/
?#:
]
*
)(?:
:
(\d
+
))?)?
/
,
...
@@ -71,7 +71,7 @@ function addToPrefiltersOrTransports( structure ) {
...
@@ -71,7 +71,7 @@ function addToPrefiltersOrTransports( structure ) {
}
}
if
(
jQuery
.
isFunction
(
func
)
)
{
if
(
jQuery
.
isFunction
(
func
)
)
{
var
dataTypes
=
dataTypeExpression
.
toLowerCase
().
split
(
rspaces
Ajax
),
var
dataTypes
=
dataTypeExpression
.
toLowerCase
().
split
(
rspaces
),
i
=
0
,
i
=
0
,
length
=
dataTypes
.
length
,
length
=
dataTypes
.
length
,
dataType
,
dataType
,
...
@@ -599,7 +599,7 @@ jQuery.extend({
...
@@ -599,7 +599,7 @@ jQuery.extend({
s
.
url
=
(
(
url
||
s
.
url
)
+
""
).
replace
(
rhash
,
""
).
replace
(
rprotocol
,
ajaxLocParts
[
1
]
+
"//"
);
s
.
url
=
(
(
url
||
s
.
url
)
+
""
).
replace
(
rhash
,
""
).
replace
(
rprotocol
,
ajaxLocParts
[
1
]
+
"//"
);
// Extract dataTypes list
// Extract dataTypes list
s
.
dataTypes
=
jQuery
.
trim
(
s
.
dataType
||
"*"
).
toLowerCase
().
split
(
rspaces
Ajax
);
s
.
dataTypes
=
jQuery
.
trim
(
s
.
dataType
||
"*"
).
toLowerCase
().
split
(
rspaces
);
// Determine if a cross-domain request is in order
// Determine if a cross-domain request is in order
if
(
s
.
crossDomain
==
null
)
{
if
(
s
.
crossDomain
==
null
)
{
...
...
src/event.js
View file @
57f56be0
...
@@ -4,7 +4,7 @@ var hasOwn = Object.prototype.hasOwnProperty,
...
@@ -4,7 +4,7 @@ var hasOwn = Object.prototype.hasOwnProperty,
rnamespaces
=
/
\.(
.*
)
$/
,
rnamespaces
=
/
\.(
.*
)
$/
,
rformElems
=
/^
(?:
textarea|input|select
)
$/i
,
rformElems
=
/^
(?:
textarea|input|select
)
$/i
,
rperiod
=
/
\.
/g
,
rperiod
=
/
\.
/g
,
rspace
=
/ /g
,
rspace
s
=
/
\s
+/
,
rescape
=
/
[^\w\s
.|`
]
/g
,
rescape
=
/
[^\w\s
.|`
]
/g
,
fcleanup
=
function
(
nm
)
{
fcleanup
=
function
(
nm
)
{
return
nm
.
replace
(
rescape
,
"
\\
$&"
);
return
nm
.
replace
(
rescape
,
"
\\
$&"
);
...
@@ -1177,7 +1177,7 @@ function liveHandler( event ) {
...
@@ -1177,7 +1177,7 @@ function liveHandler( event ) {
}
}
function
liveConvert
(
type
,
selector
)
{
function
liveConvert
(
type
,
selector
)
{
return
(
type
&&
type
!==
"*"
?
type
+
"."
:
""
)
+
selector
.
replace
(
rperiod
,
"`"
).
replace
(
rspace
,
"&"
);
return
(
type
&&
type
!==
"*"
?
type
+
"."
:
""
)
+
selector
.
replace
(
rperiod
,
"`"
).
replace
(
rspace
s
,
"&"
);
}
}
jQuery
.
each
(
(
"blur focus focusin focusout load resize scroll unload click dblclick "
+
jQuery
.
each
(
(
"blur focus focusin focusout load resize scroll unload click dblclick "
+
...
...
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