Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/cartforge.co/pub/static/frontend/Magento/luma/en_US/Magento_PageBuilder/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/cartforge.co/pub/static/frontend/Magento/luma/en_US/Magento_PageBuilder/js/events.js
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

define(['uiEvents'], function (uiEvents) {
    'use strict';

    return {

        /**
         * Calls callback when name event is triggered
         *
         * @param {String} events
         * @param {Function} callback
         * @param {Function} ns
         * @return {Object}
         */
        on: function (events, callback, ns) {
            uiEvents.on('pagebuilder:' + events, callback, 'pagebuilder:' + ns);

            return this;
        },

        /**
         * Removed callback from listening to target event
         *
         * @param {String} ns
         * @return {Object}
         */
        off: function (ns) {
            uiEvents.off('pagebuilder:' + ns);

            return this;
        },

        /**
         * Triggers event and executes all attached callbacks
         *
         * @param {String} name
         * @param {any} args
         * @returns {Boolean}
         */
        trigger: function (name, args) {
            return uiEvents.trigger('pagebuilder:' + name, args);
        }
    };
});

Spamworldpro Mini