Merge pull request #18 from DanilloCorvalan/master

changing model array fields flattening format to use square braces
This commit is contained in:
Joe Vu 2015-04-06 21:47:57 -07:00
commit f890e70e6e

View File

@ -125,7 +125,7 @@
var flatObject = this._flatten(obj[i]);
for (var x in flatObject) {
if (!flatObject.hasOwnProperty(x)) continue;
output[i + '.' + x] = flatObject[x];
output['[' + i + '].[' + x + ']'] = flatObject[x];
}
} else {
output[i] = obj[i];