Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed iteration of keys even with spaces

  • Loading branch information...
commit 199d39cad3bfdb51b907a1ab4a91ba1804de5682 1 parent 59d899e
@keichii authored
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;
}
});
Please sign in to comment.
Something went wrong with that request. Please try again.