Commit cf260fe2 authored by Rick Waldron's avatar Rick Waldron

Match the codebase standard, .split(" ") => .match( core_rnotwhite ) || []… no...

Match the codebase standard, .split(" ") => .match( core_rnotwhite ) || []… no matter how awful it is >:|
Signed-off-by: 's avatarRick Waldron <waldron.rick@gmail.com>
parent f5068089
...@@ -103,10 +103,11 @@ Data.prototype = { ...@@ -103,10 +103,11 @@ Data.prototype = {
if ( key in cache ) { if ( key in cache ) {
name = [ key ]; name = [ key ];
} else { } 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 = camel( key );
name = name in cache ? name = name in cache ?
[ name ] : name.split(" "); [ name ] : ( name.match( core_rnotwhite ) || [] );
} }
} else { } else {
// If "name" is an array of keys... // If "name" is an array of keys...
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment