Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7495855
ve.dm.LeafNode.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
ve.dm.LeafNode.js
View Options
/*!
* VisualEditor DataModel LeafNode class.
*
* @copyright See AUTHORS.txt
*/
/**
* DataModel leaf node.
*
* Leaf nodes can not have any children.
*
* @abstract
* @extends ve.dm.Node
* @mixes ve.LeafNode
*
* @constructor
* @param {Object} [element] Reference to element in linear model
*/
ve
.
dm
.
LeafNode
=
function
VeDmLeafNode
()
{
// Mixin constructor
ve
.
LeafNode
.
call
(
this
);
// Parent constructor
ve
.
dm
.
LeafNode
.
super
.
apply
(
this
,
arguments
);
};
/* Inheritance */
OO
.
inheritClass
(
ve
.
dm
.
LeafNode
,
ve
.
dm
.
Node
);
OO
.
mixinClass
(
ve
.
dm
.
LeafNode
,
ve
.
LeafNode
);
/* Static properties */
ve
.
dm
.
LeafNode
.
static
.
childNodeTypes
=
[];
ve
.
dm
.
LeafNode
.
static
.
isDiffedAsLeaf
=
true
;
/* Methods */
/**
* Get the annotations that apply to the node.
*
* Annotations are grabbed directly from the linear model, so they are updated live. If the linear
* model element doesn't have a .annotations property, an empty array is returned.
*
* @return {number[]} Annotation set indexes in the index-value store
*/
ve
.
dm
.
LeafNode
.
prototype
.
getAnnotations
=
function
()
{
return
this
.
element
.
annotations
||
[];
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 23, 22:02 (6 d, 13 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
43/d0/1f7a49b632da847b216ef5d7d85e
Default Alt Text
ve.dm.LeafNode.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment