Your IP : 216.73.216.158


Current Path : /proc/thread-self/cwd/static/adminhtml/Magento/backend/it_IT/Magento_Paypal/js/
Upload File :
Current File : //proc/thread-self/cwd/static/adminhtml/Magento/backend/it_IT/Magento_Paypal/js/rule.js

/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
define([
    'uiClass',
    'Magento_Paypal/js/rules'
], function (Class, Rules) {
    'use strict';

    return Class.extend({

        /**
         * Constructor
         *
         * @param {Object} config
         * @returns {exports.initialize}
         */
        initialize: function (config) {
            this.rules = new Rules();
            this.initConfig(config);

            return this;
        },

        /**
         * To apply the rule
         */
        apply: function () {
            this.rules[this.name](this.$target, this.$owner, this.data);
        }
    });
});