mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Match the codebase standard, .split(" ") => .match( core_rnotwhite ) || []… no matter how awful it is >:|
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
This commit is contained in:
parent
f50680898b
commit
cf260fe285
@ -103,10 +103,11 @@ Data.prototype = {
|
||||
if ( key in cache ) {
|
||||
name = [ key ];
|
||||
} else {
|
||||
// Split the camel cased version by spaces unless a key with the spaces exists
|
||||
// If a key with the spaces exists, use it.
|
||||
// Otherwise, create an array by matching non-whitespace
|
||||
name = camel( key );
|
||||
name = name in cache ?
|
||||
[ name ] : name.split(" ");
|
||||
[ name ] : ( name.match( core_rnotwhite ) || [] );
|
||||
}
|
||||
} else {
|
||||
// If "name" is an array of keys...
|
||||
|
Loading…
Reference in New Issue
Block a user