mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 00:13:36 +00:00
Merge "Fix some typos in comments"
This commit is contained in:
commit
e8e9ba5f98
|
@ -213,7 +213,7 @@ class CommentUtils {
|
|||
* 3. If this is an mw:Transclusion node, return it; otherwise, go to step 1
|
||||
*
|
||||
* @param Node $node
|
||||
* @return Element|null Translcusion node, null if not found
|
||||
* @return Element|null Transclusion node, null if not found
|
||||
*/
|
||||
public static function getTranscludedFromElement( Node $node ): ?Element {
|
||||
while ( $node ) {
|
||||
|
|
|
@ -252,7 +252,7 @@ CommentController.prototype.focus = function () {
|
|||
CommentController.prototype.showAndFocus = function () {
|
||||
var commentController = this;
|
||||
this.focus();
|
||||
// Calling can trigger a scroll-into-view withing VE, so wait for this to
|
||||
// Calling can trigger a scroll-into-view within VE, so wait for this to
|
||||
// happen so it doesn't cancel our scrolling of the whole widget into view
|
||||
setTimeout( function () {
|
||||
commentController.replyWidget.scrollElementIntoView( { padding: scrollPadding } );
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/**
|
||||
* MemoryStorage creates a wrapper around mw.SafeStorage objects, duplicating
|
||||
* their contents in memory, so that even if the underlying storage mechanism
|
||||
* fails (e.g. quote exceeded), the storage can be relied on before the
|
||||
* fails (e.g. quota exceeded), the storage can be relied on before the
|
||||
* page has been reloaded.
|
||||
*
|
||||
* @example
|
||||
|
|
|
@ -289,7 +289,7 @@ function removeAddedListItem( node ) {
|
|||
*
|
||||
* Assumes that the list has a parent node.
|
||||
*
|
||||
* @param {Node} list DOM node, will be wrapepd if it is a list element (dl/ol/ul)
|
||||
* @param {Node} list DOM node, will be wrapped if it is a list element (dl/ol/ul)
|
||||
* @param {DocumentFragment|null} fragment Containing document fragment if list has no parent
|
||||
*/
|
||||
function unwrapList( list, fragment ) {
|
||||
|
|
|
@ -178,7 +178,7 @@ function closestElement( node, tagNames ) {
|
|||
* 3. If this is an mw:Transclusion node, return it; otherwise, go to step 1
|
||||
*
|
||||
* @param {Node} node
|
||||
* @return {HTMLElement|null} Translcusion node, null if not found
|
||||
* @return {HTMLElement|null} Transclusion node, null if not found
|
||||
*/
|
||||
function getTranscludedFromElement( node ) {
|
||||
while ( node ) {
|
||||
|
|
Loading…
Reference in a new issue