Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…tion.
  • Loading branch information...
commit 34c73bc3af8e02b1cc8f9282bfb4afda707daaf4 1 parent 57674a5
@3rd-Eden 3rd-Eden authored
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
);
Please sign in to comment.
Something went wrong with that request. Please try again.