onepiecejs / nodejs-cantas

Cantas is a real-time collaborative web application. Official repository
Other
202 stars 134 forks source link

There is a circular dependency to cause require('./board') returns empty object in models/cards.js #102

Closed tkdchen closed 9 years ago

tkdchen commented 9 years ago

The circular dependency is

                  require('./list/)
                  in models/board.js
                     ^          \
                    /            \
                   /              \
                  /                v
require('./board') <-------------- require('./card')
  models/card.js                   in models/list.js

This circular dependency causes require('./board') returns empty object in models/card.js eventually.

tkdchen commented 9 years ago

Fixed, and code has been merged.