mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-26 19:56:49 +00:00
doc: @return -> @returns
Follows-up 8f05cdbf70
.
Change-Id: Id2b68e521ab68862f0f635925708a35d10795342
This commit is contained in:
parent
8f05cdbf70
commit
ac6c4da3a7
|
@ -53,7 +53,7 @@ ve.dm.MWExternalLinkAnnotation.static.toDomElements = function ( dataElement ) {
|
|||
/* Methods */
|
||||
|
||||
/**
|
||||
* @return {Object}
|
||||
* @returns {Object}
|
||||
*/
|
||||
ve.dm.MWExternalLinkAnnotation.prototype.getComparableObject = function () {
|
||||
return {
|
||||
|
|
|
@ -88,7 +88,7 @@ ve.dm.MWInternalLinkAnnotation.static.normalizeTitle = function ( title ) {
|
|||
/* Methods */
|
||||
|
||||
/**
|
||||
* @return {Object}
|
||||
* @returns {Object}
|
||||
*/
|
||||
ve.dm.MWInternalLinkAnnotation.prototype.getComparableObject = function () {
|
||||
return {
|
||||
|
|
|
@ -206,7 +206,7 @@ ve.dm.MWBlockImageNode.static.toDomElements = function ( data, doc, converter )
|
|||
* Get the caption node of the image.
|
||||
*
|
||||
* @method
|
||||
* @return {ve.dm.MWImageCaptionNode|null} Caption node, if present
|
||||
* @returns {ve.dm.MWImageCaptionNode|null} Caption node, if present
|
||||
*/
|
||||
ve.dm.MWBlockImageNode.prototype.getCaptionNode = function() {
|
||||
var node = this.children[0];
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
/**
|
||||
* Use deferreds to avoid loading and instantiating Target multiple times.
|
||||
* @return {jQuery.Promise}
|
||||
* @returns {jQuery.Promise}
|
||||
*/
|
||||
function getTarget() {
|
||||
var loadTargetDeferred;
|
||||
|
|
|
@ -295,7 +295,7 @@ ve.ui.MWTransclusionDialog.prototype.onOutlineControlsAdd = function ( type ) {
|
|||
* Get an index for part insertion.
|
||||
*
|
||||
* @method
|
||||
* @return {number} Index to insert new parts at
|
||||
* @returns {number} Index to insert new parts at
|
||||
*/
|
||||
ve.ui.MWTransclusionDialog.prototype.getPartInsertionIndex = function () {
|
||||
var parts = this.transclusion.getParts(),
|
||||
|
|
|
@ -42,7 +42,7 @@ ve.ce.DomRange.prototype.equals = function ( other ) {
|
|||
};
|
||||
|
||||
/**
|
||||
* @return {ve.Range}
|
||||
* @returns {ve.Range}
|
||||
*/
|
||||
ve.ce.DomRange.prototype.getRange = function () {
|
||||
return new ve.Range(
|
||||
|
|
|
@ -50,7 +50,7 @@ ve.dm.LinkAnnotation.static.toDomElements = function ( dataElement, doc ) {
|
|||
/* Methods */
|
||||
|
||||
/**
|
||||
* @return {Object}
|
||||
* @returns {Object}
|
||||
*/
|
||||
ve.dm.LinkAnnotation.prototype.getComparableObject = function () {
|
||||
return {
|
||||
|
|
|
@ -70,7 +70,7 @@ ve.dm.TextStyleAnnotation.static.toDomElements = function ( dataElement, doc ) {
|
|||
/* Methods */
|
||||
|
||||
/**
|
||||
* @return {Object}
|
||||
* @returns {Object}
|
||||
*/
|
||||
ve.dm.TextStyleAnnotation.prototype.getComparableObject = function () {
|
||||
return {
|
||||
|
|
|
@ -74,7 +74,7 @@ ve.ui.Tool.static.titleMessage = null;
|
|||
* @static
|
||||
* @inheritable
|
||||
* @param {ve.dm.Model} model Model to check
|
||||
* @return {boolean} Tool can be used to edit model
|
||||
* @returns {boolean} Tool can be used to edit model
|
||||
*/
|
||||
ve.ui.Tool.static.canEditModel = function () {
|
||||
return false;
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
* @method
|
||||
* @param {Object} subject Object to check
|
||||
* @param {Function[]} classes Classes to compare with
|
||||
* @return {boolean} Object inherits from one or more of the classes
|
||||
* @returns {boolean} Object inherits from one or more of the classes
|
||||
*/
|
||||
ve.isInstanceOfAny = function ( subject, classes ) {
|
||||
var i = classes.length;
|
||||
|
@ -121,7 +121,7 @@
|
|||
*
|
||||
* @param {HTMLElement[]} domElements DOM elements to copy
|
||||
* @param {HTMLDocument} [doc] Document to create the copies in; if unset, simply clone each element
|
||||
* @return {HTMLElement[]} Copy of domElements with copies of each element
|
||||
* @returns {HTMLElement[]} Copy of domElements with copies of each element
|
||||
*/
|
||||
ve.copyDomElements = function ( domElements, doc ) {
|
||||
return domElements.map( function ( domElement ) {
|
||||
|
|
Loading…
Reference in a new issue