Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var $ = require('spm-jquery'),
utils = require('./utils'),
Widget = require('arale-widget'),
async = require('./async'),
Rule = require('./rule');
var setterConfig = {
value: $.noop,
setter: function (val) {
return $.isFunction(val) ? val : utils.helper(val);
}
};
function hasRequired(val){
return (' ' + val + ' ').indexOf(' required ') >= 0;
}
var Item = Widget.extend({
attrs: {
rule: {
value: '',
getter: function(val){
val = $.trim(val);