Merge pull request #513 from strongloop/feature/fix-issue-512
Use the correct way to iterate over an array
This commit is contained in:
commit
579895d1b3
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue