Use the correct way to iterate over an array

See https://github.com/strongloop/loopback-datasource-juggler/issues/512
This commit is contained in:
Raymond Feng 2015-03-18 08:21:32 -07:00
parent 01fb5db550
commit cd1d815936
1 changed files with 1 additions and 1 deletions

View File

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