meteor/meteor — pull request #341 by possibilities (2012-09-18 05:55:35+00:00)
Title: allow collection validators to run on client

@avital This is rough (but works) but I wanted to gauge your interest before going too far.

The main idea is that Collection#allow validations will run on the client and/or server depending on where they're defined (rather than making that decision in the mutator definitions). This has a positive impact on reactive UI's because, for example, when you delete something from a collection the UI doesn't first react to the object being deleted from minimongo and then again when it's re-inserted after resynching when validations fail on the server. Instead because the validation fails on the client there's no flicker because the item doesn't get removed on the client in the first place.