Skip to content
Permalink
Browse files

Match the codebase standard, .split(" ") => .match( core_rnotwhite ) …

…|| []… no matter how awful it is >:|

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
  • Loading branch information...
rwaldron committed Feb 3, 2013
1 parent f506808 commit cf260fe2858fcc6012a0a9cfa4b794d81c6fb9ad
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/data.js
@@ -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...

0 comments on commit cf260fe

Please sign in to comment.
You can’t perform that action at this time.