How to use the spm-jquery.extend 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 / rule.js View on Github external
return new Rule(null, function (options, commit) {
            rule.operator($.extend(null, options, opts), commit);
        });
    } else {
github aralejs / validator / src / item.js View on Github external
function getMsgOptions(param, ruleName, self) {
    var options = $.extend({}, param, {
        element: self.element,
        display: (param && param.display) || self.get('display'),
        rule: ruleName
    });

    var message = self.get('errormessage' + upperFirstLetter(ruleName)) || self.get('errormessage');
    if (message && !options.message) {
        options.message = {
            failure: message
        };
    }

    return options;
}
github aralejs / validator / src / item.js View on Github external
$.each(rules, function(i, item) {
            var obj = utils.parseRule(item),
                ruleName = obj.name,
                param = obj.param;

            if (theRule === ruleName) {
                message = Rule.getMessage($.extend(options || {}, getMsgOptions(param, ruleName, self)), isSuccess);
            }
        });
        return message;

spm-jquery

JavaScript library for DOM operations

MIT
Latest version published 9 years ago

Package Health Score

69 / 100
Full package analysis