Fixed documentation errors

Many of these problems were introduced in I859b5871a9d2f17d970c002067c8ff24f3513e9f

Change-Id: Ifc2dc4934f782c4ce5107e3a356e357aef754083
This commit is contained in:
Trevor Parscal 2013-01-22 14:41:22 -08:00 committed by Gerrit Code Review
parent 721e69cd9e
commit bf5ba1ea2b
21 changed files with 48 additions and 38 deletions

View file

@ -72,7 +72,7 @@
"groups": [ "groups": [
{ {
"name": "General", "name": "General",
"classes": ["ve.ui", "ve.ui.Context", "ve.ui.Frame", "ve.ui.InspectorFactory", "ve.ui.Menu", "ve.ui.Toolbar"] "classes": ["ve.ui", "ve.ui.Context", "ve.ui.Frame", "ve.ui.InspectorFactory", "ve.ui.Toolbar", "ve.ui.ToolFactory"]
}, },
{ {
"name": "Tools", "name": "Tools",
@ -81,6 +81,10 @@
{ {
"name": "Inspectors", "name": "Inspectors",
"classes": ["ve.ui.*Inspector"] "classes": ["ve.ui.*Inspector"]
},
{
"name": "Widgets",
"classes": ["ve.ui.*Widget"]
} }
] ]
}, },
@ -93,11 +97,11 @@
}, },
{ {
"name": "Registries", "name": "Registries",
"classes": ["ve.CommandRegistry"] "classes": ["ve.CommandRegistry", "ve.TriggerRegistry"]
}, },
{ {
"name": "Factories", "name": "Factories",
"classes": ["ve.ActionFactory", "ve.ToolFactory"] "classes": ["ve.ActionFactory"]
}, },
{ {
"name": "Nodes", "name": "Nodes",

View file

@ -55,7 +55,7 @@ ve.ce.ListNode.prototype.onUpdate = function () {
* Handle splice events. * Handle splice events.
* *
* This is used to solve a rendering bug in Firefox. * This is used to solve a rendering bug in Firefox.
* @see ve.ce.BranchNode.prototype.onSplice * @see ve.ce.BranchNode#onSplice
* *
* @method * @method
*/ */

View file

@ -38,7 +38,7 @@ ve.inheritClass( ve.ce.ContentBranchNode, ve.ce.BranchNode );
* Handle splice events. * Handle splice events.
* *
* This is used to automatically render contents. * This is used to automatically render contents.
* @see ve.ce.BranchNode.prototype.onSplice * @see ve.ce.BranchNode#onSplice
* *
* @method * @method
*/ */

View file

@ -539,7 +539,7 @@ ve.ce.Surface.prototype.onDocumentCompositionEnd = function () {
/** /**
* Handle change events. * Handle change events.
* *
* @see ve.dm.Surface.prototype.change. * @see ve.dm.Surface#change
* *
* @method * @method
* @param {ve.dm.Transaction|null} transaction * @param {ve.dm.Transaction|null} transaction
@ -554,7 +554,7 @@ ve.ce.Surface.prototype.onChange = function ( transaction, selection ) {
/** /**
* Handle selection change events. * Handle selection change events.
* *
* @see ve.ce.SurfaceObserver.prototype.poll * @see ve.ce.SurfaceObserver#poll
* *
* @method * @method
* @param {ve.Range} oldRange * @param {ve.Range} oldRange
@ -569,7 +569,7 @@ ve.ce.Surface.prototype.onSelectionChange = function ( oldRange, newRange ) {
/** /**
* Handle content change events. * Handle content change events.
* *
* @see ve.ce.SurfaceObserver.prototype.poll * @see ve.ce.SurfaceObserver#poll
* *
* @method * @method
* @param {HTMLElement} node DOM node the change occured in * @param {HTMLElement} node DOM node the change occured in

View file

@ -8,7 +8,7 @@
/** /**
* DataModel link annotation. * DataModel link annotation.
* *
* Represents <a> tags that don't have a specific type. * Represents `<a>` tags that don't have a specific type.
* *
* @class * @class
* @extends ve.dm.Annotation * @extends ve.dm.Annotation

View file

@ -63,7 +63,7 @@ ve.dm.Annotation.static.name = null;
* *
* Empty array means none, null means any. * Empty array means none, null means any.
* *
* @see ve#dm#AnnotationFactory * @see ve.dm.AnnotationFactory
* *
* @static * @static
* @property {Array} static.matchTagNames * @property {Array} static.matchTagNames
@ -76,7 +76,7 @@ ve.dm.Annotation.static.matchTagNames = null;
* *
* Empty array means none, null means any. * Empty array means none, null means any.
* *
* @see ve#dm#AnnotationFactory * @see ve.dm.AnnotationFactory
* *
* @static * @static
* @property {Array} static.matchRdfaType * @property {Array} static.matchRdfaType

View file

@ -491,11 +491,11 @@ ve.dm.Document.prototype.getLength = function () {
/** /**
* Splice data into and/or out of the linear model. * Splice data into and/or out of the linear model.
* *
* {@link #metadata} will be updated accordingly. * `this.metadata` will be updated accordingly.
* *
* Always use this function, never use this.data.splice() directly, otherwise the linear model * Always use this function, never use `this.data.splice()` directly, otherwise the linear model
* (this.data) and the meta-linmod (this.metadata) can get out of sync. The semantics of the * (`this.data`) and the meta-linmod (`this.metadata`) can get out of sync. The semantics of the
* parameters are identical to those of ve.batchSplice() * parameters are identical to those of ve#batchSplice
* *
* @method * @method
* @see ve#batchSplice * @see ve#batchSplice
@ -1094,7 +1094,7 @@ ve.dm.Document.prototype.fixupInsertion = function ( data, offset ) {
* This function updates parentNode, parentType, openingStack and closingStack. * This function updates parentNode, parentType, openingStack and closingStack.
* *
* @private * @private
* @function * @method
* @param {Object|Array|string} element Linear model element * @param {Object|Array|string} element Linear model element
* @param {number} index Index in data that the element came from (for error reporting only) * @param {number} index Index in data that the element came from (for error reporting only)
*/ */

View file

@ -1,5 +1,3 @@
/*global mw, confirm, alert */
/*! /*!
* VisualEditor MediaWiki Initialization ViewPageTarget class. * VisualEditor MediaWiki Initialization ViewPageTarget class.
* *
@ -7,6 +5,8 @@
* @license The MIT License (MIT); see LICENSE.txt * @license The MIT License (MIT); see LICENSE.txt
*/ */
/*global mw, confirm, alert */
/** /**
* Initialization MediaWiki view page target. * Initialization MediaWiki view page target.
* *
@ -920,7 +920,7 @@ ve.init.mw.ViewPageTarget.prototype.detachToolbarButtons = function () {
* Get a template for the save dialog. * Get a template for the save dialog.
* *
* The result of this function depends on an API call, so the result it provided asynchronously. * The result of this function depends on an API call, so the result it provided asynchronously.
* The template will be wrapped in a plain <div> jQuery collection. * The template will be wrapped in a plain `<div>` jQuery collection.
* *
* @method * @method
* @param {Function} callback * @param {Function} callback

View file

@ -1,5 +1,3 @@
/*global mw */
/*! /*!
* VisualEditor MediaWiki Initialization Target class. * VisualEditor MediaWiki Initialization Target class.
* *
@ -7,6 +5,8 @@
* @license The MIT License (MIT); see LICENSE.txt * @license The MIT License (MIT); see LICENSE.txt
*/ */
/*global mw */
/** /**
* Initialization MediaWiki platform. * Initialization MediaWiki platform.
* *

View file

@ -1,5 +1,3 @@
/*global mw */
/*! /*!
* VisualEditor MediaWiki Initialization Target class. * VisualEditor MediaWiki Initialization Target class.
* *
@ -7,6 +5,8 @@
* @license The MIT License (MIT); see LICENSE.txt * @license The MIT License (MIT); see LICENSE.txt
*/ */
/*global mw */
/** /**
* Initialization MediaWiki target. * Initialization MediaWiki target.
* *

View file

@ -1,5 +1,3 @@
/*global mw */
/*! /*!
* VisualEditor user interface LinkInspector class. * VisualEditor user interface LinkInspector class.
* *
@ -7,6 +5,8 @@
* @license The MIT License (MIT); see LICENSE.txt * @license The MIT License (MIT); see LICENSE.txt
*/ */
/*global mw */
/** /**
* Creates an ve.ui.LinkInspector object. * Creates an ve.ui.LinkInspector object.
* *

View file

@ -1,4 +1,4 @@
/** /*!
* VisualEditor user interface Widget styles. * VisualEditor user interface Widget styles.
* *
* @copyright 2011-2012 VisualEditor Team and others; see AUTHORS.txt * @copyright 2011-2012 VisualEditor Team and others; see AUTHORS.txt

View file

@ -64,7 +64,7 @@ ve.ui.Context.static = {};
/** /**
* Options for iframe. * Options for iframe.
* *
* @see ve#ui#Frame * @see ve.ui.Frame
* *
* @static * @static
* @property * @property

View file

@ -59,7 +59,7 @@ ve.ui.Frame.prototype.$$ = function ( selector ) {
* @private * @private
* @param {jQuery} $frame Frame to attach and initialize * @param {jQuery} $frame Frame to attach and initialize
* @param {jQuery} $container Container to append frame to * @param {jQuery} $container Container to append frame to
* @returns {HTMLDocument} Frame document * @returns {HTMLElement} Frame document
*/ */
ve.ui.Frame.prototype.attachFrame = function ( $frame, $container ) { ve.ui.Frame.prototype.attachFrame = function ( $frame, $container ) {
var doc; var doc;

View file

@ -1,4 +1,4 @@
/** /*!
* VisualEditor user interface Widget class. * VisualEditor user interface Widget class.
* *
* @copyright 2011-2012 VisualEditor Team and others; see AUTHORS.txt * @copyright 2011-2012 VisualEditor Team and others; see AUTHORS.txt

View file

@ -1,4 +1,4 @@
/** /*!
* VisualEditor user interface InputWidget class. * VisualEditor user interface InputWidget class.
* *
* @copyright 2011-2012 VisualEditor Team and others; see AUTHORS.txt * @copyright 2011-2012 VisualEditor Team and others; see AUTHORS.txt
@ -47,6 +47,12 @@ ve.ui.InputWidget = function VeUiInputWidget( $$, type, name, value ) {
ve.inheritClass( ve.ui.InputWidget, ve.ui.Widget ); ve.inheritClass( ve.ui.InputWidget, ve.ui.Widget );
/**
* @event change
* @param value
* @param origin
*/
/* Methods */ /* Methods */
/** /**
@ -65,7 +71,7 @@ ve.ui.InputWidget.prototype.getValue = function () {
* @method * @method
* @param {string} value New value * @param {string} value New value
* @param {string} [origin] Origin of change * @param {string} [origin] Origin of change
* @emits change (value, origin) * @emits change
*/ */
ve.ui.InputWidget.prototype.setValue = function ( value, origin ) { ve.ui.InputWidget.prototype.setValue = function ( value, origin ) {
var domValue = this.$input.val(); var domValue = this.$input.val();

View file

@ -1,4 +1,4 @@
/** /*!
* VisualEditor user interface LinkTargetInputWidget class. * VisualEditor user interface LinkTargetInputWidget class.
* *
* @copyright 2011-2012 VisualEditor Team and others; see AUTHORS.txt * @copyright 2011-2012 VisualEditor Team and others; see AUTHORS.txt

View file

@ -1,11 +1,12 @@
/*global mw*/ /*!
/**
* VisualEditor user interface MWLinkTargetInputWidget class. * VisualEditor user interface MWLinkTargetInputWidget class.
* *
* @copyright 2011-2012 VisualEditor Team and others; see AUTHORS.txt * @copyright 2011-2012 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt * @license The MIT License (MIT); see LICENSE.txt
*/ */
/*global mw*/
/** /**
* Creates an ve.ui.MWLinkTargetInputWidget object. * Creates an ve.ui.MWLinkTargetInputWidget object.
* *

View file

@ -167,10 +167,9 @@ ve.ui.MenuWidget.prototype.getItems = function () {
* Sets the position of the menu. * Sets the position of the menu.
* *
* @method * @method
* @returns {ve.Position} New menu position
*/ */
ve.ui.MenuWidget.prototype.setPosition = function ( position ) { ve.ui.MenuWidget.prototype.setPosition = function ( position ) {
return this.$.css( { this.$.css( {
'top': position.top, 'top': position.top,
'left': position.left 'left': position.left
} ); } );

View file

@ -1,4 +1,4 @@
/** /*!
* VisualEditor user interface TextInputMenuWidget class. * VisualEditor user interface TextInputMenuWidget class.
* *
* @copyright 2011-2012 VisualEditor Team and others; see AUTHORS.txt * @copyright 2011-2012 VisualEditor Team and others; see AUTHORS.txt

View file

@ -1,4 +1,4 @@
/** /*!
* VisualEditor user interface TextInputWidget class. * VisualEditor user interface TextInputWidget class.
* *
* @copyright 2011-2012 VisualEditor Team and others; see AUTHORS.txt * @copyright 2011-2012 VisualEditor Team and others; see AUTHORS.txt