Merge pull request #513 from strongloop/feature/fix-issue-512

Use the correct way to iterate over an array
This commit is contained in:
Raymond Feng 2015-03-18 08:22:06 -07:00
commit 579895d1b3
1 changed files with 1 additions and 1 deletions

View File

@ -720,7 +720,7 @@ ModelBuilder.prototype.buildModels = function (schemas, createModel) {
} }
var relations = []; var relations = [];
for (var s in schemas) { for (var s = 0, n = schemas.length; s < n; s++) {
var name = this.getSchemaName(schemas[s].name); var name = this.getSchemaName(schemas[s].name);
schemas[s].name = name; schemas[s].name = name;
var model; var model;