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

Commit 68add46d by José Moreira

for -> .forEach

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