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

decouple rules #56

Closed
mren opened this issue Feb 7, 2012 · 1 comment
Closed

decouple rules #56

mren opened this issue Feb 7, 2012 · 1 comment

Comments

@mren
Copy link
Contributor

mren commented Feb 7, 2012

hello chriso,

i like your library and have used it in some node projects. kudos to you
i am interested in using the rules of the validator directly without method chaining.

your current code attaches all functions directly to the prototype.
i would like it if the validation functions would be decoupled from the actual validator class.

this would make it possible to reuse them more easily.

if you are interested, i will fork and come back to you with a pull request

@chriso
Copy link
Collaborator

chriso commented Feb 9, 2012

Hi Mark, someone has attempted this before but they seemed to have deleted some of the project files so I never got around to merging it. I would be interested in pulling out the rules though - if you send a fork I'll merge it. Cheers

@mren mren mentioned this issue Feb 9, 2012
@chriso chriso closed this as completed Feb 11, 2012
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

2 participants