Skip to content

Commit

Permalink
reverted prev. change
Browse files Browse the repository at this point in the history
  • Loading branch information
sdepold committed Jul 11, 2013
1 parent ebaec17 commit 633205e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/dao-factory-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,9 @@ module.exports = (function() {

for (var attrName in dao.rawAttributes) {
if (dao.rawAttributes.hasOwnProperty(attrName)) {
(function(reference) {
if (!!reference) {
deps.push((reference instanceof DaoFactory) ? reference.tableName : reference)
}
})(dao.rawAttributes[attrName].references)
if (dao.rawAttributes[attrName].references) {
deps.push(dao.rawAttributes[attrName].references)
}
}
}

Expand Down

0 comments on commit 633205e

Please sign in to comment.