/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
lib/web/mage/backend/button.js
53 строки
1 KB
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
11 ноя 2025, 17:53
11 ноя 2025, 17:53
f22b64f
Код
Авторство
О чём код?
/** * Copyright 2014 Adobe * All Rights Reserved. */ define([ 'jquery', 'jquery/ui' ], function ($) { 'use strict'; $.widget('ui.button', $.ui.button, { options: { eventData: {}, waitTillResolved: true }, /** * Button creation. * @protected */ _create: function () { if (this.options.event) { this.options.target = this.options.target || this.element; this._bind(); } this._super(); }, /** * Bind handler on button click. * @protected */ _bind: function () { this.element .off('click.button') .on('click.button', $.proxy(this._click, this)); }, /** * Button click handler. * @protected */ _click: function () { var options = this.options; $(options.target).trigger(options.event, [options.eventData]); } }); return $.ui.button; });