Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7494402
ve.dm.DocumentSlice.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.DocumentSlice.js
View Options
/*!
* VisualEditor DataModel DocumentSlice class.
*
* @copyright See AUTHORS.txt
*/
/**
* DataModel document slice
*
* @class
* @extends ve.dm.Document
* @constructor
* @param {HTMLDocument|Array|ve.dm.ElementLinearData} data
* @param {HTMLDocument} [htmlDocument]
* @param {ve.dm.Document} [parentDocument]
* @param {ve.dm.InternalList} [internalList]
* @param {ve.Range} [originalRange] Range of original data
* @param {ve.Range} [balancedRange] Range of balanced data
* @param {ve.dm.Document} [originalDocument]
*/
ve
.
dm
.
DocumentSlice
=
function
VeDmDocumentSlice
(
data
,
htmlDocument
,
parentDocument
,
internalList
,
originalRange
,
balancedRange
,
originalDocument
)
{
// Parent constructor
ve
.
dm
.
DocumentSlice
.
super
.
call
(
this
,
data
,
htmlDocument
,
parentDocument
,
internalList
,
undefined
,
undefined
,
undefined
,
originalDocument
);
this
.
originalRange
=
originalRange
;
this
.
balancedRange
=
balancedRange
;
};
/* Inheritance */
OO
.
inheritClass
(
ve
.
dm
.
DocumentSlice
,
ve
.
dm
.
Document
);
/* Methods */
ve
.
dm
.
DocumentSlice
.
prototype
.
getOriginalData
=
function
()
{
return
this
.
getData
(
this
.
originalRange
);
};
ve
.
dm
.
DocumentSlice
.
prototype
.
getBalancedData
=
function
()
{
return
this
.
getData
(
this
.
balancedRange
);
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 23, 21:19 (6 d, 9 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a6/2e/8d825ea619ff61e7c329d4a5cf98
Default Alt Text
ve.dm.DocumentSlice.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment