Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7425632
ve.ui.ClearAnnotationCommand.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
887 B
Referenced Files
None
Subscribers
None
ve.ui.ClearAnnotationCommand.js
View Options
/*!
* VisualEditor UserInterface ClearAnnotationCommand class.
*
* @copyright See AUTHORS.txt
*/
/**
* UserInterface clear all annotations command.
*
* @class
* @extends ve.ui.Command
*
* @constructor
*/
ve
.
ui
.
ClearAnnotationCommand
=
function
VeUiClearAnnotationCommand
()
{
// Parent constructor
ve
.
ui
.
ClearAnnotationCommand
.
super
.
call
(
this
,
'clear'
,
'annotation'
,
'clearAll'
,
{
supportedSelections
:
[
'linear'
,
'table'
]
}
);
};
/* Inheritance */
OO
.
inheritClass
(
ve
.
ui
.
ClearAnnotationCommand
,
ve
.
ui
.
Command
);
/* Methods */
/**
* @inheritdoc
*/
ve
.
ui
.
ClearAnnotationCommand
.
prototype
.
isExecutable
=
function
(
fragment
)
{
// Parent method
return
ve
.
ui
.
ClearAnnotationCommand
.
super
.
prototype
.
isExecutable
.
apply
(
this
,
arguments
)
&&
fragment
.
hasAnnotations
();
};
/* Registration */
ve
.
ui
.
commandRegistry
.
register
(
new
ve
.
ui
.
ClearAnnotationCommand
()
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 22, 08:01 (19 h, 40 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
6f/06/825e1067249734e209314067638e
Default Alt Text
ve.ui.ClearAnnotationCommand.js (887 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment