Skip to content
Browse files

fixed iteration of keys even with spaces

  • Loading branch information...
1 parent 59d899e commit 199d39cad3bfdb51b907a1ab4a91ba1804de5682 @keichii committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.js
View
2 index.js
@@ -40,7 +40,7 @@ exports.templateText = function (name, data) {
data.forEach(function (property) {
switch (property.type) {
default:
- fields.push('.field(property=\'' + property.name + '\')= model.' + property.name);
+ fields.push('.field(property=\'' + property.name + '\')= model[\'' + property.name + '\']');
break;
}
});

0 comments on commit 199d39c

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