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
a60fed4d
Commit
a60fed4d
authored
Oct 10, 2012
by
Dave Methvin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #12690. Avoid use of UTF-8 chars in final files.
parent
5a21150c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
core.js
src/core.js
+2
-1
event.js
src/event.js
+1
-1
No files found.
src/core.js
View file @
a60fed4d
...
@@ -605,7 +605,8 @@ jQuery.extend({
...
@@ -605,7 +605,8 @@ jQuery.extend({
},
},
// Use native String.trim function wherever possible
// Use native String.trim function wherever possible
trim
:
core_trim
&&
!
core_trim
.
call
(
"
\
uFEFF
\
xA0"
)
?
// Uglify converts escapes to UTF-8; this circumvents (#12690)
trim
:
core_trim
&&
!
core_trim
.
call
(
String
.
fromCharCode
(
0xFEFF
,
0xA0
)
)
?
function
(
text
)
{
function
(
text
)
{
return
text
==
null
?
return
text
==
null
?
""
:
""
:
...
...
src/event.js
View file @
a60fed4d
...
@@ -603,7 +603,7 @@ jQuery.removeEvent = document.removeEventListener ?
...
@@ -603,7 +603,7 @@ jQuery.removeEvent = document.removeEventListener ?
if
(
elem
.
detachEvent
)
{
if
(
elem
.
detachEvent
)
{
// #8545, #7054, preventing memory leaks for custom events in IE6-8
–
// #8545, #7054, preventing memory leaks for custom events in IE6-8
// detachEvent needed property on element, by name of that event, to properly expose it to GC
// detachEvent needed property on element, by name of that event, to properly expose it to GC
if
(
typeof
elem
[
name
]
===
"undefined"
)
{
if
(
typeof
elem
[
name
]
===
"undefined"
)
{
elem
[
name
]
=
null
;
elem
[
name
]
=
null
;
...
...
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