jenkins-bot has submitted this change and it was merged.
Change subject: Fix lots of spelling mistakes and typos
......................................................................
Fix lots of spelling mistakes and typos
Change-Id: Ibe0a55eeecd6a0c5feb8e38801f6d98bb75d5a87
---
M php/Theme.php
M php/layouts/GridLayout.php
M php/widgets/TextInputWidget.php
M src/ActionSet.js
M src/Element.js
M src/Theme.js
M src/Window.js
M src/WindowManager.js
M src/core.js
M src/dialogs/MessageDialog.js
M src/dialogs/ProcessDialog.js
M src/elements/ButtonElement.js
M src/elements/GroupElement.js
M src/elements/IconElement.js
M src/layouts/BookletLayout.js
M src/layouts/GridLayout.js
M src/toolgroups/ListToolGroup.js
M src/widgets/ButtonInputWidget.js
M src/widgets/ItemWidget.js
M src/widgets/OutlineOptionWidget.js
M src/widgets/SearchWidget.js
M src/widgets/SelectWidget.js
M src/widgets/TextInputMenuSelectWidget.js
M src/widgets/TextInputWidget.js
24 files changed, 39 insertions(+), 39 deletions(-)
Approvals:
Krinkle: Looks good to me, approved
jenkins-bot: Verified
diff --git a/php/Theme.php b/php/Theme.php
index 84e50ea..39c266b 100644
--- a/php/Theme.php
+++ b/php/Theme.php
@@ -41,7 +41,7 @@
/**
* Update CSS classes provided by the theme.
*
- * For elements with theme logic hooks, this should be called anytime
there's a state change.
+ * For elements with theme logic hooks, this should be called any time
there's a state change.
*
* @param Element $element Element for which to update classes
* @return array Categorized class names with `on` and `off` lists
diff --git a/php/layouts/GridLayout.php b/php/layouts/GridLayout.php
index 21b3ce5..577d2ad 100644
--- a/php/layouts/GridLayout.php
+++ b/php/layouts/GridLayout.php
@@ -135,7 +135,7 @@
*
* @param number $x Horizontal position
* @param number $y Vertical position
- * @return PanelLayout The panel at the given postion
+ * @return PanelLayout The panel at the given position
*/
public function getPanel( $x, $y ) {
return $this->panels[ ( $x * count( $this->widths ) ) + $y ];
diff --git a/php/widgets/TextInputWidget.php b/php/widgets/TextInputWidget.php
index 33240b5..51f02b4 100644
--- a/php/widgets/TextInputWidget.php
+++ b/php/widgets/TextInputWidget.php
@@ -65,7 +65,7 @@
}
/**
- * Set the read-only state of the widget. This should probably change
the widgets's appearance and
+ * Set the read-only state of the widget. This should probably change
the widget's appearance and
* prevent it from being used.
*
* @param boolean $state Make input read-only
diff --git a/src/ActionSet.js b/src/ActionSet.js
index 88ecc72..25efb12 100644
--- a/src/ActionSet.js
+++ b/src/ActionSet.js
@@ -9,7 +9,7 @@
* @param {Object} [config] Configuration options
*/
OO.ui.ActionSet = function OoUiActionSet( config ) {
- // Configuration intialization
+ // Configuration initialization
config = config || {};
// Mixin constructors
@@ -351,7 +351,7 @@
/**
* Organize actions.
*
- * This is called whenver organized information is requested. It will only
reorganize the actions
+ * This is called whenever organized information is requested. It will only
reorganize the actions
* if something has changed since the last time it ran.
*
* @private
@@ -368,7 +368,7 @@
for ( i = 0, iLen = this.list.length; i < iLen; i++ ) {
action = this.list[i];
if ( action.isVisible() ) {
- // Populate catgeories
+ // Populate categories
for ( category in this.categories ) {
if ( !this.categorized[category] ) {
this.categorized[category] = {};
diff --git a/src/Element.js b/src/Element.js
index 1505a22..e0d6eb1 100644
--- a/src/Element.js
+++ b/src/Element.js
@@ -445,7 +445,7 @@
/**
* Update the theme-provided classes.
*
- * @localdoc This is called in element mixins and widget classes anytime state
changes.
+ * @localdoc This is called in element mixins and widget classes any time
state changes.
* Updating is debounced, minimizing overhead of changing multiple
attributes and
* guaranteeing that theme updates do not occur within an element's
constructor
*/
diff --git a/src/Theme.js b/src/Theme.js
index 65bf091..92de72e 100644
--- a/src/Theme.js
+++ b/src/Theme.js
@@ -34,7 +34,7 @@
/**
* Update CSS classes provided by the theme.
*
- * For elements with theme logic hooks, this should be called anytime there's
a state change.
+ * For elements with theme logic hooks, this should be called any time there's
a state change.
*
* @param {OO.ui.Element} element Element for which to update classes
* @return {Object.<string,string[]>} Categorized class names with `on` and
`off` lists
diff --git a/src/Window.js b/src/Window.js
index 6c487f0..7ff9e2e 100644
--- a/src/Window.js
+++ b/src/Window.js
@@ -25,8 +25,8 @@
*
* Each process (setup, ready, hold and teardown) can be extended in
subclasses by overriding
* {@link #getSetupProcess}, {@link #getReadyProcess}, {@link #getHoldProcess}
and
- * {@link #getTeardownProcess} respectively. Each process is executed in
series, so asynchonous
- * processing can complete. Always assume window processes are executed
asychronously. See
+ * {@link #getTeardownProcess} respectively. Each process is executed in
series, so asynchronous
+ * processing can complete. Always assume window processes are executed
asynchronously. See
* OO.ui.Process for more details about how to work with processes. Some
events, as well as the
* #open and #close methods, provide promises which are resolved when the
window enters a new state.
*
@@ -69,7 +69,7 @@
this.$frame.addClass( 'oo-ui-window-frame' );
this.$overlay.addClass( 'oo-ui-window-overlay' );
- // NOTE: Additional intitialization will occur when #setManager is
called
+ // NOTE: Additional initialization will occur when #setManager is called
};
/* Setup */
@@ -415,7 +415,7 @@
/**
* Toggle visibility of window.
*
- * If the window is isolated and hasn't fully loaded yet, the visiblity
property will be used
+ * If the window is isolated and hasn't fully loaded yet, the visibility
property will be used
* instead of display.
*
* @param {boolean} [show] Make window visible, omit to toggle visibility
@@ -588,7 +588,7 @@
/**
* Setup window.
*
- * This is called by OO.ui.WindowManager durring window opening, and should
not be called directly
+ * This is called by OO.ui.WindowManager during window opening, and should not
be called directly
* by other systems.
*
* @param {Object} [data] Window opening data
@@ -613,7 +613,7 @@
/**
* Ready window.
*
- * This is called by OO.ui.WindowManager durring window opening, and should
not be called directly
+ * This is called by OO.ui.WindowManager during window opening, and should not
be called directly
* by other systems.
*
* @param {Object} [data] Window opening data
@@ -637,7 +637,7 @@
/**
* Hold window.
*
- * This is called by OO.ui.WindowManager durring window closing, and should
not be called directly
+ * This is called by OO.ui.WindowManager during window closing, and should not
be called directly
* by other systems.
*
* @param {Object} [data] Window closing data
@@ -668,7 +668,7 @@
/**
* Teardown window.
*
- * This is called by OO.ui.WindowManager durring window closing, and should
not be called directly
+ * This is called by OO.ui.WindowManager during window closing, and should not
be called directly
* by other systems.
*
* @param {Object} [data] Window closing data
diff --git a/src/WindowManager.js b/src/WindowManager.js
index 2d655ea..c08339e 100644
--- a/src/WindowManager.js
+++ b/src/WindowManager.js
@@ -677,7 +677,7 @@
.attr( 'aria-hidden', '' );
}
} else if ( this.$ariaHidden ) {
- // Restore screen reader visiblity
+ // Restore screen reader visibility
this.$ariaHidden.removeAttr( 'aria-hidden' );
this.$ariaHidden = null;
}
diff --git a/src/core.js b/src/core.js
index b3813ba..7763ac1 100644
--- a/src/core.js
+++ b/src/core.js
@@ -87,7 +87,7 @@
*
* @param {HTMLElement|HTMLElement[]} containers Container node(s) to search in
* @param {HTMLElement} contained Node to find
- * @param {boolean} [matchContainers] Include the container(s) in the list of
nodes to match, otherwise only match descendents
+ * @param {boolean} [matchContainers] Include the container(s) in the list of
nodes to match, otherwise only match descendants
* @return {boolean} The node is in the list of target nodes
*/
OO.ui.contains = function ( containers, contained, matchContainers ) {
diff --git a/src/dialogs/MessageDialog.js b/src/dialogs/MessageDialog.js
index 1a1814c..072535b 100644
--- a/src/dialogs/MessageDialog.js
+++ b/src/dialogs/MessageDialog.js
@@ -38,7 +38,7 @@
* Dialog title.
*
* A confirmation dialog's title should describe what the progressive action
will do. An alert
- * dialog's title should describe what event occured.
+ * dialog's title should describe what event occurred.
*
* @static
* inheritable
@@ -48,7 +48,7 @@
/**
* A confirmation dialog's message should describe the consequences of the
progressive action. An
- * alert dialog's message should describe why the event occured.
+ * alert dialog's message should describe why the event occurred.
*
* @static
* inheritable
diff --git a/src/dialogs/ProcessDialog.js b/src/dialogs/ProcessDialog.js
index 2cd21d7..0ec8f49 100644
--- a/src/dialogs/ProcessDialog.js
+++ b/src/dialogs/ProcessDialog.js
@@ -171,7 +171,7 @@
};
/**
- * Handle errors that occured durring accept or reject processes.
+ * Handle errors that occurred during accept or reject processes.
*
* @param {OO.ui.Error[]} errors Errors to be handled
*/
diff --git a/src/elements/ButtonElement.js b/src/elements/ButtonElement.js
index 58a57a0..dfa779e 100644
--- a/src/elements/ButtonElement.js
+++ b/src/elements/ButtonElement.js
@@ -104,7 +104,7 @@
if ( this.isDisabled() || e.which !== 1 ) {
return false;
}
- // Restore the tab-index after the button is up to restore the button's
accesssibility
+ // Restore the tab-index after the button is up to restore the button's
accessibility
this.$button.attr( 'tabindex', this.tabIndex );
this.$element.removeClass( 'oo-ui-buttonElement-pressed' );
// Stop listening for mouseup, since we only needed this once
diff --git a/src/elements/GroupElement.js b/src/elements/GroupElement.js
index 5d97be2..1bb5622 100644
--- a/src/elements/GroupElement.js
+++ b/src/elements/GroupElement.js
@@ -9,7 +9,7 @@
* @cfg {jQuery} [$group] Container node, assigned to #$group, omit to use a
generated `<div>`
*/
OO.ui.GroupElement = function OoUiGroupElement( config ) {
- // Configuration intialization
+ // Configuration initialization
config = config || {};
// Properties
diff --git a/src/elements/IconElement.js b/src/elements/IconElement.js
index 0548353..1763f47 100644
--- a/src/elements/IconElement.js
+++ b/src/elements/IconElement.js
@@ -18,7 +18,7 @@
* @cfg {string} [iconTitle] Icon title text or a function that returns text
*/
OO.ui.IconElement = function OoUiIconElement( config ) {
- // Configuration intialization
+ // Configuration initialization
config = config || {};
// Properties
diff --git a/src/layouts/BookletLayout.js b/src/layouts/BookletLayout.js
index 16a7af1..e0c29b6 100644
--- a/src/layouts/BookletLayout.js
+++ b/src/layouts/BookletLayout.js
@@ -227,7 +227,7 @@
/**
* Get the outline widget.
*
- * @return {OO.ui.OutlineSelectWidget|null} Outline widget, or null if boolet
has no outline
+ * @return {OO.ui.OutlineSelectWidget|null} Outline widget, or null if booklet
has no outline
*/
OO.ui.BookletLayout.prototype.getOutline = function () {
return this.outlineSelectWidget;
diff --git a/src/layouts/GridLayout.js b/src/layouts/GridLayout.js
index dbbe659..eae9928 100644
--- a/src/layouts/GridLayout.js
+++ b/src/layouts/GridLayout.js
@@ -149,7 +149,7 @@
*
* @param {number} x Horizontal position
* @param {number} y Vertical position
- * @return {OO.ui.PanelLayout} The panel at the given postion
+ * @return {OO.ui.PanelLayout} The panel at the given position
*/
OO.ui.GridLayout.prototype.getPanel = function ( x, y ) {
return this.panels[ ( x * this.widths.length ) + y ];
diff --git a/src/toolgroups/ListToolGroup.js b/src/toolgroups/ListToolGroup.js
index ef943f9..357e97b 100644
--- a/src/toolgroups/ListToolGroup.js
+++ b/src/toolgroups/ListToolGroup.js
@@ -18,7 +18,7 @@
* @cfg {boolean} [expanded=false] Whether the collapsible tools are expanded
by default
*/
OO.ui.ListToolGroup = function OoUiListToolGroup( toolbar, config ) {
- // Configuration intialization
+ // Configuration initialization
config = config || {};
// Properties (must be set before parent constructor, which calls
#populate)
diff --git a/src/widgets/ButtonInputWidget.js b/src/widgets/ButtonInputWidget.js
index 5147ad6..52f60f3 100644
--- a/src/widgets/ButtonInputWidget.js
+++ b/src/widgets/ButtonInputWidget.js
@@ -75,7 +75,7 @@
* @return {jQuery} Input element
*/
OO.ui.ButtonInputWidget.prototype.getInputElement = function ( config ) {
- // Configuration intialization
+ // Configuration initialization
config = config || {};
var html = '<' + ( config.useInputTag ? 'input' : 'button' ) + '
type="' + config.type + '">';
diff --git a/src/widgets/ItemWidget.js b/src/widgets/ItemWidget.js
index 616e207..d53331f 100644
--- a/src/widgets/ItemWidget.js
+++ b/src/widgets/ItemWidget.js
@@ -2,7 +2,7 @@
* Mixin for widgets used as items in widgets that inherit OO.ui.GroupWidget.
*
* Item widgets have a reference to a OO.ui.GroupWidget while they are
attached to the group. This
- * allows bidrectional communication.
+ * allows bidirectional communication.
*
* Use together with OO.ui.GroupWidget to make disabled state inheritable.
*
diff --git a/src/widgets/OutlineOptionWidget.js
b/src/widgets/OutlineOptionWidget.js
index aa60ef8..b5c52ca 100644
--- a/src/widgets/OutlineOptionWidget.js
+++ b/src/widgets/OutlineOptionWidget.js
@@ -46,7 +46,7 @@
/**
* Check if item is movable.
*
- * Movablilty is used by outline controls.
+ * Movability is used by outline controls.
*
* @return {boolean} Item is movable
*/
@@ -57,7 +57,7 @@
/**
* Check if item is removable.
*
- * Removablilty is used by outline controls.
+ * Removability is used by outline controls.
*
* @return {boolean} Item is removable
*/
@@ -77,7 +77,7 @@
/**
* Set movability.
*
- * Movablilty is used by outline controls.
+ * Movability is used by outline controls.
*
* @param {boolean} movable Item is movable
* @chainable
@@ -91,7 +91,7 @@
/**
* Set removability.
*
- * Removablilty is used by outline controls.
+ * Removability is used by outline controls.
*
* @param {boolean} movable Item is removable
* @chainable
diff --git a/src/widgets/SearchWidget.js b/src/widgets/SearchWidget.js
index 7485f95..0367d6b 100644
--- a/src/widgets/SearchWidget.js
+++ b/src/widgets/SearchWidget.js
@@ -13,7 +13,7 @@
* @cfg {string} [value] Initial query value
*/
OO.ui.SearchWidget = function OoUiSearchWidget( config ) {
- // Configuration intialization
+ // Configuration initialization
config = config || {};
// Parent constructor
diff --git a/src/widgets/SelectWidget.js b/src/widgets/SelectWidget.js
index 55c45c1..febdf4e 100644
--- a/src/widgets/SelectWidget.js
+++ b/src/widgets/SelectWidget.js
@@ -250,10 +250,10 @@
};
/**
- * Get an existing item with equivilant data.
+ * Get an existing item with equivalent data.
*
* @param {Object} data Item data to search for
- * @return {OO.ui.OptionWidget|null} Item with equivilent value, `null` if
none exists
+ * @return {OO.ui.OptionWidget|null} Item with equivalent value, `null` if
none exists
*/
OO.ui.SelectWidget.prototype.getItemFromData = function ( data ) {
var hash = OO.getHash( data );
@@ -412,7 +412,7 @@
/**
* Get the next selectable item.
*
- * @return {OO.ui.OptionWidget|null} Item, `null` if ther aren't any
selectable items
+ * @return {OO.ui.OptionWidget|null} Item, `null` if there aren't any
selectable items
*/
OO.ui.SelectWidget.prototype.getFirstSelectableItem = function () {
var i, len, item;
diff --git a/src/widgets/TextInputMenuSelectWidget.js
b/src/widgets/TextInputMenuSelectWidget.js
index 823e9d8..22b4d54 100644
--- a/src/widgets/TextInputMenuSelectWidget.js
+++ b/src/widgets/TextInputMenuSelectWidget.js
@@ -14,7 +14,7 @@
* @cfg {jQuery} [$container=input.$element] Element to render menu under
*/
OO.ui.TextInputMenuSelectWidget = function OoUiTextInputMenuSelectWidget(
input, config ) {
- // Configuration intialization
+ // Configuration initialization
config = config || {};
// Parent constructor
diff --git a/src/widgets/TextInputWidget.js b/src/widgets/TextInputWidget.js
index 2785ca0..34825ab 100644
--- a/src/widgets/TextInputWidget.js
+++ b/src/widgets/TextInputWidget.js
@@ -180,7 +180,7 @@
/**
* Set the read-only state of the widget.
*
- * This should probably change the widgets's appearance and prevent it from
being used.
+ * This should probably change the widget's appearance and prevent it from
being used.
*
* @param {boolean} state Make input read-only
* @chainable
--
To view, visit https://gerrit.wikimedia.org/r/174940
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ibe0a55eeecd6a0c5feb8e38801f6d98bb75d5a87
Gerrit-PatchSet: 1
Gerrit-Project: oojs/ui
Gerrit-Branch: master
Gerrit-Owner: Esanders <[email protected]>
Gerrit-Reviewer: Esanders <[email protected]>
Gerrit-Reviewer: Krinkle <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits