Skip to content

Commit 2f4a2d3

Browse files
committed
Merge pull request #682 from tswayne/master
Fix global var
2 parents d1d6ba5 + b50a32a commit 2f4a2d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Associations/Many.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ function extendInstance(Model, Instance, Driver, association, opts, createInstan
135135
function adjustForMapsTo(options) {
136136
// Loop through the (cloned) association model id fields ... some of them may've been mapped to different
137137
// names in the actual database - if so update to the mapped database column name
138-
for(i=0; i<options.__merge.to.field.length; i++) {
138+
for(var i=0; i<options.__merge.to.field.length; i++) {
139139
var idProp = association.model.properties[options.__merge.to.field[i]];
140140
if(idProp && idProp.mapsTo) {
141141
options.__merge.to.field[i] = idProp.mapsTo;

0 commit comments

Comments
 (0)