Skip to content
Browse files

[minor] Allow the data for the partial to be selected using dot notia…

…tion.
  • Loading branch information...
1 parent 57674a5 commit 34c73bc3af8e02b1cc8f9282bfb4afda707daaf4 @3rd-Eden 3rd-Eden committed Aug 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/plates.js
View
2 lib/plates.js
@@ -321,7 +321,7 @@ var Plates = (typeof module !== 'undefined' && typeof module.exports !== 'undefi
} else if (mapping.plates) {
var partial = that.bind(
mapping.plates
- , typeof mapping.data === 'string' ? data[mapping.data] : mapping.data || data
+ , typeof mapping.data === 'string' ? fetch(data, { dataKey: mapping.data }) : mapping.data || data
, mapping.mapper
);

0 comments on commit 34c73bc

Please sign in to comment.
Something went wrong with that request. Please try again.