3n/ValidateSimple — pull request #6 by reedlauber (2014-11-25 01:09:18+00:00)
Title: Remove .pass(es) from callbacks

There's a weird bug being created by using `.pass` here. Behind the scenes, `.pass` does an `Array.from()` with the args passed (`input`), to ensure that it's passing an array to an `.apply()` internally.

Turns out that if you do `Array.from` on a ``, is explodes it out into an array of `
`s instead of an array with one ``. Then the first parameter that is passed in, is the first `
` in the list, which is not what we want.

Removing the `.pass`es here and changing them to slightly more simple `.bind`s allows us to enforce that `input` will always be the parameter that is passed in.

Also, I suspect that this bug is what caused these lines in the first place, but I didn't remove them because I wasn't really sure why they were there:

https://github.com/3n/ValidateSimple/blob/master/Source/ValidateSimple.js#L190-L191