cleaned up validation shims/modules

pull/2/head
Keivan Beigi 10 years ago
parent e4a93ded28
commit 672e1bd9ed

@ -1,6 +1,5 @@
var Validation = require('backbone.validation');
var _ = require('underscore');
require('../jQuery/jquery.validation');
module.exports = (function(){
'use strict';

@ -1,8 +1,7 @@
require('backbone');
require('../jQuery/jquery.validation');
require('../JsLibraries/backbone.validation');
var $ = require('jquery');
var jqueryValidation = require('../jQuery/jquery.validation');
jqueryValidation.call($);
require('backbone');
require('../jQuery/jquery.validation');
require('../JsLibraries/backbone.validation');
module.exports = window.Backbone.Validation;

@ -2,7 +2,6 @@ var Backbone = require('backbone');
var $ = require('jquery');
var StatusModel = require('../System/StatusModel');
module.exports = (function(){
var routeBinder = {
bind : function(){
var self = this;
@ -47,5 +46,5 @@ module.exports = (function(){
}
}
};
return routeBinder;
}).call(this);
module.exports = routeBinder;

@ -1,7 +1,6 @@
var $ = require('jquery');
module.exports = (function(){
module.exports = function(){
'use strict';
var $ = this;
$.fn.processServerError = function(error){
var validationName = error.propertyName.toLowerCase();
var errorMessage = this.formatErrorMessage(error);
@ -72,4 +71,4 @@ module.exports = (function(){
}
return errorMessage;
};
}).call(this);
};
Loading…
Cancel
Save