dist/backbone-validation.js
function(view, attr, error, selector) {
      view.$('[' + selector + '~="' + attr + '"]')
          .addClass('invalid')
          .attr('data-error', error);
    }
function(view, attr, error, selector) {
      view.$('[' + selector + '~="' + attr + '"]')
          .addClass('invalid')
          .attr('data-error', error);
    }
function ( view , attr , error , selector ) { view . $ ( '[' + selector + '~="' + attr + '"]' ) . addClass ( 'invalid' ) . attr ( 'data-error' , error ) ; }
Gets called when a field in the view becomes invalid. Adds a error message. Should be overridden with custom functionality.
Gets called when a field in the view becomes invalid . Adds a error message . Should be overridden with custom functionality .