tidy codes

Signed-off-by: Clark Wang <clark.wangs@gmail.com>
This commit is contained in:
Clark Wang 2014-09-03 21:56:48 +08:00
parent 1393bd0759
commit 74ad6522e7
1 changed files with 1 additions and 1 deletions

View File

@ -639,9 +639,9 @@ RelationDefinition.hasMany = function hasMany(modelFrom, modelTo, params) {
definition.applyScope(this, filter);
if (definition.modelThrough) {
var throughRelationName;
// find corresponding belongsTo relations from through model as collect
var throughRelationName;
for(var r in definition.modelThrough.relations) {
var relation = definition.modelThrough.relations[r];