How to use the spm-jquery.noop function in spm-jquery

To help you get started, we’ve selected a few spm-jquery examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aralejs / validator / src / item.js View on Github external
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);

spm-jquery

JavaScript library for DOM operations

MIT
Latest version published 9 years ago

Package Health Score

69 / 100
Full package analysis