File manager - Edit - /home/web/vm-3fadc827.na4u.ru/www/bitrix/modules/landing/install/js/landing/history/src/history-command.js
Back
import {Type} from 'main.core'; /** * Implements interface for works with command of history * @param {{id: string, undo: function, redo: function}} options */ export default class Command { constructor(options: {id: string, undo: () => {}, redo: () => {}}) { this.id = Type.isStringFilled(options.id) ? options.id : '#invalidCommand'; this.undo = Type.isFunction(options.undo) ? options.undo : (() => {}); this.redo = Type.isFunction(options.redo) ? options.redo : (() => {}); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.26 |
proxy
|
phpinfo
|
Settings