Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7428175
ve.dm.NullSelection.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
ve.dm.NullSelection.js
View Options
/*!
* VisualEditor Null Selection class.
*
* @copyright See AUTHORS.txt
*/
/**
* @class
* @extends ve.dm.Selection
* @constructor
*/
ve
.
dm
.
NullSelection
=
function
VeDmNullSelection
()
{
// Parent constructor
ve
.
dm
.
NullSelection
.
super
.
call
(
this
);
};
/* Inheritance */
OO
.
inheritClass
(
ve
.
dm
.
NullSelection
,
ve
.
dm
.
Selection
);
/* Static Properties */
ve
.
dm
.
NullSelection
.
static
.
name
=
'null'
;
/* Static Methods */
/**
* @inheritdoc
*/
ve
.
dm
.
NullSelection
.
static
.
newFromHash
=
function
()
{
return
new
ve
.
dm
.
NullSelection
();
};
/* Methods */
/**
* @inheritdoc
*/
ve
.
dm
.
NullSelection
.
prototype
.
toJSON
=
function
()
{
return
{
type
:
this
.
constructor
.
static
.
name
};
};
/**
* @inheritdoc
*/
ve
.
dm
.
NullSelection
.
prototype
.
getDescription
=
function
()
{
return
'Null'
;
};
/**
* Used as a shortcut for methods which make no modification
*
* @private
* @return {ve.dm.NullSelection} The selection itself
*/
ve
.
dm
.
NullSelection
.
prototype
.
self
=
function
()
{
return
this
;
};
ve
.
dm
.
NullSelection
.
prototype
.
collapseToStart
=
ve
.
dm
.
NullSelection
.
prototype
.
self
;
ve
.
dm
.
NullSelection
.
prototype
.
collapseToEnd
=
ve
.
dm
.
NullSelection
.
prototype
.
self
;
ve
.
dm
.
NullSelection
.
prototype
.
collapseToFrom
=
ve
.
dm
.
NullSelection
.
prototype
.
self
;
ve
.
dm
.
NullSelection
.
prototype
.
collapseToTo
=
ve
.
dm
.
NullSelection
.
prototype
.
self
;
/**
* @inheritdoc
*/
ve
.
dm
.
NullSelection
.
prototype
.
isCollapsed
=
function
()
{
return
true
;
};
ve
.
dm
.
NullSelection
.
prototype
.
translateByTransaction
=
ve
.
dm
.
NullSelection
.
prototype
.
self
;
ve
.
dm
.
NullSelection
.
prototype
.
translateByTransactionWithAuthor
=
ve
.
dm
.
NullSelection
.
prototype
.
self
;
/**
* @inheritdoc
*/
ve
.
dm
.
NullSelection
.
prototype
.
getRanges
=
function
()
{
return
[];
};
/**
* @inheritdoc
*/
ve
.
dm
.
NullSelection
.
prototype
.
getCoveringRange
=
function
()
{
return
null
;
};
/**
* @inheritdoc
*/
ve
.
dm
.
NullSelection
.
prototype
.
equals
=
function
(
other
)
{
return
this
===
other
||
(
!!
other
&&
other
.
constructor
===
this
.
constructor
);
};
/**
* @inheritdoc
*/
ve
.
dm
.
NullSelection
.
prototype
.
isNull
=
function
()
{
return
true
;
};
/* Registration */
ve
.
dm
.
selectionFactory
.
register
(
ve
.
dm
.
NullSelection
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 22, 09:21 (14 h, 50 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
67/68/0a77018dfb855df7d902305776e7
Default Alt Text
ve.dm.NullSelection.js (2 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment