mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Minor doc fixes to ve.dm.Transaction
.
Correct the return value descriptions for the `newFromMetadataInsertion` and `newFromMetadataRemoval` methods (which appear to have been cut-and-pasted from another method). Change-Id: I019b0ef9c75ff47fc0f2df8c95da9d090710a5a8
This commit is contained in:
parent
e4662a65cd
commit
7c1ba7750c
|
@ -331,7 +331,7 @@ ve.dm.Transaction.newFromMetadataInsertion = function ( doc, offset, index, newE
|
|||
* @param {ve.dm.Document} doc Document to create transaction for
|
||||
* @param {number} offset Offset of element
|
||||
* @param {ve.Range} range Range of metadata to remove
|
||||
* @returns {ve.dm.Transaction} Transaction that removes data
|
||||
* @returns {ve.dm.Transaction} Transaction that removes metadata elements
|
||||
* @throws {Error} Cannot remove metadata from empty list
|
||||
* @throws {Error} Range out of bounds
|
||||
*/
|
||||
|
@ -375,7 +375,7 @@ ve.dm.Transaction.newFromMetadataRemoval = function ( doc, offset, range ) {
|
|||
* @param {number} offset Offset of element
|
||||
* @param {number} index Index of metadata cursor within element
|
||||
* @param {Object} newElement New element to insert
|
||||
* @returns {ve.dm.Transaction} Transaction that removes data
|
||||
* @returns {ve.dm.Transaction} Transaction that replaces a metadata element
|
||||
* @throws {Error} Metadata index out of bounds
|
||||
*/
|
||||
ve.dm.Transaction.newFromMetadataElementReplacement = function ( doc, offset, index, newElement ) {
|
||||
|
|
Loading…
Reference in a new issue