diff --git a/src/core.js b/src/core.js index 709467168..638b5c62f 100644 --- a/src/core.js +++ b/src/core.js @@ -605,7 +605,8 @@ jQuery.extend({ }, // 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 ) { return text == null ? "" : diff --git a/src/event.js b/src/event.js index c92dd4206..153045ac5 100644 --- a/src/event.js +++ b/src/event.js @@ -603,7 +603,7 @@ jQuery.removeEvent = document.removeEventListener ? 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 if ( typeof elem[ name ] === "undefined" ) { elem[ name ] = null;