src/aria/templates/Modifiers.js
function (modifierName, params) {
                // IMPORTANT: neither this method, nor any modifier, should assume
                // that `this === aria.templates.Modifiers` holds,
                // as they're copied in aria.core.Template (so 'this' is most of the time
                // an object extending aria.core.Template)
                modifierName = "" + modifierName;
                var modifier = __modifiers[modifierName.toLowerCase()];
                if (modifier) {
                    // call the modifier with this, so that this.$log is available
                    return modifier.fn.apply(this, params);
                } else {
                    this.$logError(aria.templates.Modifiers.UNKNOWN_MODIFIER, [modifierName]);
                }
            }
function (modifierName, params) {
                // IMPORTANT: neither this method, nor any modifier, should assume
                // that `this === aria.templates.Modifiers` holds,
                // as they're copied in aria.core.Template (so 'this' is most of the time
                // an object extending aria.core.Template)
                modifierName = "" + modifierName;
                var modifier = __modifiers[modifierName.toLowerCase()];
                if (modifier) {
                    // call the modifier with this, so that this.$log is available
                    return modifier.fn.apply(this, params);
                } else {
                    this.$logError(aria.templates.Modifiers.UNKNOWN_MODIFIER, [modifierName]);
                }
            }
function ( modifierName , params ) { // IMPORTANT: neither this method, nor any modifier, should assume // that `this === aria.templates.Modifiers` holds, // as they're copied in aria.core.Template (so 'this' is most of the time // an object extending aria.core.Template) modifierName = "" + modifierName ; var modifier = __modifiers [ modifierName . toLowerCase ( ) ] ; if ( modifier ) { // call the modifier with this, so that this.$log is available return modifier . fn . apply ( this , params ) ; } else { this . $logError ( aria . templates . Modifiers . UNKNOWN_MODIFIER , [ modifierName ] ) ; } }
Call the modifier function of a modifier object
@param {String} modifierName
@param {Array} params
Call the modifier function of a modifier object