XP1 has uploaded a new change for review.
https://gerrit.wikimedia.org/r/64573
Change subject: Fix typos in "jquery.textSelection.js".
......................................................................
Fix typos in "jquery.textSelection.js".
Change-Id: I8260b7a43937e9fdddeb681333defaa337fcb397
---
M resources/jquery/jquery.textSelection.js
1 file changed, 10 insertions(+), 10 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/73/64573/1
diff --git a/resources/jquery/jquery.textSelection.js
b/resources/jquery/jquery.textSelection.js
index 17fd0cd..44e687c 100644
--- a/resources/jquery/jquery.textSelection.js
+++ b/resources/jquery/jquery.textSelection.js
@@ -29,7 +29,7 @@
context,
hasIframe,
needSave,
- retval;
+ result;
/**
* Helper function to get an IE TextRange object for an element
@@ -69,27 +69,27 @@
* in some browsers (IE/Opera)
*/
getSelection: function () {
- var retval, range,
+ var result, range,
el = this.get( 0 );
if ( $(el).is( ':hidden' ) ) {
// Do nothing
- retval = '';
+ result = '';
} else if ( document.selection &&
document.selection.createRange ) {
activateElementOnIE( el );
range =
document.selection.createRange();
- retval = range.text;
+ result = range.text;
} else if ( el.selectionStart ||
el.selectionStart === 0 ) {
- retval = el.value.substring(
el.selectionStart, el.selectionEnd );
+ result = el.value.substring(
el.selectionStart, el.selectionEnd );
}
- return retval;
+ return result;
},
/**
* Ported from skins/common/edit.js by Trevor Parscal
* (c) 2009 Wikimedia Foundation (GPLv2) -
http://www.wikimedia.org
*
- * Inserts text at the begining and end of a text
selection, optionally
+ * Inserts text at the beginning and end of a text
selection, optionally
* inserting text at the caret when selection is empty.
*
* @fixme document the options parameters
@@ -257,7 +257,7 @@
* Some code copied from
*
http://www.dedestruct.com/2008/03/22/howto-cross-browser-cursor-position-in-textareas/
*
- * Get the position (in resolution of bytes not
nessecarily characters)
+ * Get the position (in resolution of bytes not
necessarily characters)
* in a textarea
*
* Will focus the textarea in some browsers (IE/Opera)
@@ -562,12 +562,12 @@
context.fn.restoreSelection();
needSave = true;
}
- retval = ( hasIframe ? context.fn : fn )[command].call( this,
options );
+ result = ( hasIframe ? context.fn : fn )[command].call( this,
options );
if ( hasIframe && needSave ) {
context.fn.saveSelection();
}
- return retval;
+ return result;
};
}( jQuery ) );
--
To view, visit https://gerrit.wikimedia.org/r/64573
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8260b7a43937e9fdddeb681333defaa337fcb397
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: XP1 <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits