mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-27 04:06:51 +00:00
Removed more trailing whitespace in multi-line comment blocks
Continues cleanup work done in e0de881a8a
Change-Id: I7165a8f8c4b468793d936fe695de92335c106271
This commit is contained in:
parent
68414e4d28
commit
94613589e0
|
@ -48,9 +48,9 @@ ve.dm.DocumentFragment = function( data, parentDocument ) {
|
|||
for ( var i = 0, length = this.data.length; i < length; i++ ) {
|
||||
/*
|
||||
* Set the node reference for this offset in the offset cache.
|
||||
*
|
||||
*
|
||||
* This looks simple, but there are three cases that result in the same thing:
|
||||
*
|
||||
*
|
||||
* 1. data[i] is an opening, so offset i is before the opening, so we need to point to the
|
||||
* parent of the opened element. currentNode will be set to the opened element later,
|
||||
* but right now its still set to the parent of the opened element.
|
||||
|
@ -59,7 +59,7 @@ ve.dm.DocumentFragment = function( data, parentDocument ) {
|
|||
* but right now it's still set to the closed element.
|
||||
* 3. data[i] is content, so offset i is in the middle of an element, so obviously we need
|
||||
* currentNode, which won't be changed by this iteration.
|
||||
*
|
||||
*
|
||||
* We want to populate the offsetMap with branches only, but we've just written the actual
|
||||
* node that lives at this offset. So if it's a leaf node, change it to its parent.
|
||||
*/
|
||||
|
|
|
@ -38,7 +38,7 @@ ve.dm.DocumentSynchronizer.synchronizers = {
|
|||
|
||||
/**
|
||||
* Synchronizes an annotation action.
|
||||
*
|
||||
*
|
||||
* @static
|
||||
* @method
|
||||
* @param {Object} action
|
||||
|
@ -54,7 +54,7 @@ ve.dm.DocumentSynchronizer.synchronizers = {
|
|||
},
|
||||
/**
|
||||
* Synchronizes an attribute change action.
|
||||
*
|
||||
*
|
||||
* @static
|
||||
* @method
|
||||
* @param {Object} action
|
||||
|
@ -65,7 +65,7 @@ ve.dm.DocumentSynchronizer.synchronizers = {
|
|||
},
|
||||
/**
|
||||
* Synchronizes a resize action.
|
||||
*
|
||||
*
|
||||
* @static
|
||||
* @method
|
||||
* @param {Object} action
|
||||
|
@ -76,7 +76,7 @@ ve.dm.DocumentSynchronizer.synchronizers = {
|
|||
},
|
||||
/**
|
||||
* Synchronizes a rebuild action.
|
||||
*
|
||||
*
|
||||
* @static
|
||||
* @method
|
||||
* @param {Object} action
|
||||
|
|
|
@ -49,12 +49,12 @@ ve.dm.example.html =
|
|||
* There are three types of components in content data:
|
||||
*
|
||||
* {String} Plain text character
|
||||
*
|
||||
*
|
||||
* {Array} Annotated character
|
||||
* 0: {String} Character
|
||||
* 1: {Object} List of references to immutable annotation objects, keyed by JSON
|
||||
* serializations of their values (hashes)
|
||||
*
|
||||
*
|
||||
* {Object} Opening or closing structural element
|
||||
* type: {String} Symbolic node type name, if closing element first character will be "/"
|
||||
* [attributes]: {Object} List of symbolic attribute name and literal value pairs
|
||||
|
|
Loading…
Reference in a new issue