Permalink
Browse files

[undo] Don't add keys by default, it causes unexpected results

  • Loading branch information...
1 parent 6dd814f commit ad8eefba8943460383ba8bc0c642e76995c5566a @3rd-Eden 3rd-Eden committed Aug 22, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/plates.js
View
@@ -49,7 +49,7 @@ var Plates = (typeof module !== 'undefined' && typeof module.exports !== 'undefi
//
// See if we are using dot notation style
//
- if (!~key.indexOf('.')) return data[key] || key;
+ if (!~key.indexOf('.')) return data[key];
var result = key
, structure = data;
@@ -59,7 +59,7 @@ var Plates = (typeof module !== 'undefined' && typeof module.exports !== 'undefi
structure = result;
}
- return result || data[key] || key;
+ return result || data[key];
}
var Merge = function Merge() {};

0 comments on commit ad8eefb

Please sign in to comment.