Permalink
Browse files

removed outcommented function

  • Loading branch information...
GarethElms committed Jan 11, 2012
1 parent 03176d3 commit 048afacd5cb22bf286b903fa0ce33de9d7d8342c
Showing with 0 additions and 22 deletions.
  1. +0 −22 backbone.validation.js
View
@@ -17,28 +17,6 @@ Backbone.Validation = (function(Backbone, _, undefined) {
}
return validatedAttrs;
};
-
- /*var getValidators = function(model, attr) {
- var validation = model.validation[attr],
- validators = [];
-
- if (_.isFunction(validation)) {
- return validation;
- } else if(_.isString(validation)) {
- return model[validation];
- } else {
- for (var validator in validation) {
- if (validator !== 'msg' && validation.hasOwnProperty(validator)) {
- validators.push({
- fn: Backbone.Validation.validators[validator],
- val: validation[validator],
- msg: validation.msg
- });
- }
- }
- return validators;
- }
- }; */
var getValidators = function(model, attr) {

0 comments on commit 048afac

Please sign in to comment.