n-time/backbone.validations — Issue #14: Question about overriding Backbone.Model
Author: satchmorun
Created: 2012-01-15 15:57:44+00:00
State: open

First of all, great library. I'm finding it very useful.

I'm curious as to why you chose to override Backbone.Model instead of just keeping your version in it's own namespace (I do see there's a noConflict).

It just looks like the code might be little cleaner if you just used Backbone's extend and overrode the `validate` and `_performValidation` functions. You also wouldn't have to check if `validate` was an object because you wouldn't have to support the original way of doing validations.

I personally prefer to use your noConflict version, because that way when I extend `Backbone.Validations.Model` I'm clearly telling myself what behavior to expect from the model.