diff options
author | Timmy Willison <4timmywil@gmail.com> | 2016-09-12 12:32:02 -0400 |
---|---|---|
committer | Timmy Willison <4timmywil@gmail.com> | 2016-09-15 10:40:27 -0400 |
commit | 3bbcce68d7b8b8a7a2164a0f7a280ae9daf70b5c (patch) | |
tree | a65aefeef8aa62ff092254dcd5b1f2c256dc82ea /src/event.js | |
parent | 2d4f53416e5f74fa98e0c1d66b6f3c285a12f0ce (diff) | |
download | jquery-3bbcce68d7b8b8a7a2164a0f7a280ae9daf70b5c.tar.gz jquery-3bbcce68d7b8b8a7a2164a0f7a280ae9daf70b5c.zip |
Core: rnotwhite -> rhtmlnotwhite and jQuery.trim -> stripAndCollapse
- Renames and changes rnotwhite to focus on HTML whitespace chars
- Change internal use of jQuery.trim to more accurate strip and collapse
- Adds tests to ensure HTML space characters are retained where valid
- Doesn't add tests where the difference is inconsequential and
existing tests are adequate.
Fixes gh-3003
Fixes gh-3072
Close gh-3316
Diffstat (limited to 'src/event.js')
-rw-r--r-- | src/event.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/event.js b/src/event.js index 859f99e08..ab2c63cd1 100644 --- a/src/event.js +++ b/src/event.js @@ -2,13 +2,13 @@ define( [ "./core", "./var/document", "./var/documentElement", - "./var/rnotwhite", + "./var/rnothtmlwhite", "./var/slice", "./data/var/dataPriv", "./core/init", "./selector" -], function( jQuery, document, documentElement, rnotwhite, slice, dataPriv ) { +], function( jQuery, document, documentElement, rnothtmlwhite, slice, dataPriv ) { "use strict"; @@ -147,7 +147,7 @@ jQuery.event = { } // Handle multiple events separated by a space - types = ( types || "" ).match( rnotwhite ) || [ "" ]; + types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; t = types.length; while ( t-- ) { tmp = rtypenamespace.exec( types[ t ] ) || []; @@ -229,7 +229,7 @@ jQuery.event = { } // Once for each type.namespace in types; type may be omitted - types = ( types || "" ).match( rnotwhite ) || [ "" ]; + types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; t = types.length; while ( t-- ) { tmp = rtypenamespace.exec( types[ t ] ) || []; |