Skip to content

Commit a60fed4

Browse files
committed
Fix #12690. Avoid use of UTF-8 chars in final files.
1 parent 5a21150 commit a60fed4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/core.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,8 @@ jQuery.extend({
605605
},
606606

607607
// Use native String.trim function wherever possible
608-
trim: core_trim && !core_trim.call("\uFEFF\xA0") ?
608+
// Uglify converts escapes to UTF-8; this circumvents (#12690)
609+
trim: core_trim && !core_trim.call( String.fromCharCode( 0xFEFF, 0xA0 ) ) ?
609610
function( text ) {
610611
return text == null ?
611612
"" :

src/event.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ jQuery.removeEvent = document.removeEventListener ?
603603

604604
if ( elem.detachEvent ) {
605605

606-
// #8545, #7054, preventing memory leaks for custom events in IE6-8
606+
// #8545, #7054, preventing memory leaks for custom events in IE6-8
607607
// detachEvent needed property on element, by name of that event, to properly expose it to GC
608608
if ( typeof elem[ name ] === "undefined" ) {
609609
elem[ name ] = null;

0 commit comments

Comments
 (0)