doc: @return -> @returns

Follows-up 8f05cdbf70.

Change-Id: Id2b68e521ab68862f0f635925708a35d10795342
This commit is contained in:
Timo Tijhof 2013-08-01 00:53:29 +02:00
parent 8f05cdbf70
commit ac6c4da3a7
10 changed files with 11 additions and 11 deletions

View file

@ -53,7 +53,7 @@ ve.dm.MWExternalLinkAnnotation.static.toDomElements = function ( dataElement ) {
/* Methods */
/**
* @return {Object}
* @returns {Object}
*/
ve.dm.MWExternalLinkAnnotation.prototype.getComparableObject = function () {
return {

View file

@ -88,7 +88,7 @@ ve.dm.MWInternalLinkAnnotation.static.normalizeTitle = function ( title ) {
/* Methods */
/**
* @return {Object}
* @returns {Object}
*/
ve.dm.MWInternalLinkAnnotation.prototype.getComparableObject = function () {
return {

View file

@ -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];

View file

@ -25,7 +25,7 @@
/**
* Use deferreds to avoid loading and instantiating Target multiple times.
* @return {jQuery.Promise}
* @returns {jQuery.Promise}
*/
function getTarget() {
var loadTargetDeferred;

View file

@ -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(),

View file

@ -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(

View file

@ -50,7 +50,7 @@ ve.dm.LinkAnnotation.static.toDomElements = function ( dataElement, doc ) {
/* Methods */
/**
* @return {Object}
* @returns {Object}
*/
ve.dm.LinkAnnotation.prototype.getComparableObject = function () {
return {

View file

@ -70,7 +70,7 @@ ve.dm.TextStyleAnnotation.static.toDomElements = function ( dataElement, doc ) {
/* Methods */
/**
* @return {Object}
* @returns {Object}
*/
ve.dm.TextStyleAnnotation.prototype.getComparableObject = function () {
return {

View file

@ -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;

View file

@ -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 ) {