Файловый менеджер - Редактировать - /var/www/html/mediawiki-1.43.1/extensions/VisualEditor/lib/ve/src/ui/commands/ve.ui.HistoryCommand.js
Ðазад
/*! * VisualEditor UserInterface HistoryCommand class. * * @copyright See AUTHORS.txt */ /** * UserInterface history command. * * @class * @extends ve.ui.Command * * @constructor * @param {string} name * @param {string} [method] */ ve.ui.HistoryCommand = function VeUiHistoryCommand( name, method ) { method = method || name; // Parent constructor ve.ui.HistoryCommand.super.call( this, name, 'history', method ); this.checkMethod = { undo: 'canUndo', redo: 'canRedo' }[ method ]; }; /* Inheritance */ OO.inheritClass( ve.ui.HistoryCommand, ve.ui.Command ); /* Methods */ /** * @inheritdoc */ ve.ui.HistoryCommand.prototype.isExecutable = function ( fragment ) { const surface = fragment.getSurface(); // Parent method return ve.ui.HistoryCommand.super.prototype.isExecutable.apply( this, arguments ) && surface[ this.checkMethod ](); }; /* Registration */ ve.ui.commandRegistry.register( new ve.ui.HistoryCommand( 'undo' ) ); ve.ui.commandRegistry.register( new ve.ui.HistoryCommand( 'redo' ) );
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка