Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move commonly used util functions out of core #2

Open
caolan opened this issue Nov 18, 2011 · 0 comments
Open

move commonly used util functions out of core #2

caolan opened this issue Nov 18, 2011 · 0 comments

Comments

@caolan
Copy link
Member

caolan commented Nov 18, 2011

eg, getDBURL() is inside core, but core will require the app making a circular require problem. To avoid this, move any commonly used public api into duality/utils or some other module.

Its annoying having to do var appdb = db.use(duality.getDBURL()) inside each list/show function instead of at the top of the module. Hopefully this can be fixed by moving things around a bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant