不要怂,就是干,撸起袖子干!

Commit 68add46d by José Moreira

for -> .forEach

1 parent de6bf280
Showing with 3 additions and 5 deletions
......@@ -1606,14 +1606,12 @@ module.exports = (function() {
}
// Apply on each include
if ( options.include && options.include.length ){
for( var i in options.include ){
var include = options.include[i]
if ( options.include && options.include.length ) {
options.include.forEach(function(include) {
if( typeof include == 'object' && include.daoFactory || include.model ){
paranoidClause.call( include.daoFactory || include.model, include )
}
}
})
}
return options;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!