Catrope has uploaded a new change for review.
https://gerrit.wikimedia.org/r/232777
Change subject: [BREAKING CHANGE] Remove ve.selectEnd()
......................................................................
[BREAKING CHANGE] Remove ve.selectEnd()
Obselete after Ia63e6c6a0 in OOjs UI.
Change-Id: I44f43f312c78df718114f42b93a34ce31f35cadb
---
M src/ve.utils.js
1 file changed, 0 insertions(+), 17 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/VisualEditor/VisualEditor
refs/changes/77/232777/1
diff --git a/src/ve.utils.js b/src/ve.utils.js
index 271c701..ba55e9a 100644
--- a/src/ve.utils.js
+++ b/src/ve.utils.js
@@ -399,23 +399,6 @@
};
/**
- * Move the selection to the end of an input.
- *
- * @param {HTMLElement} element Input element
- */
-ve.selectEnd = function ( element ) {
- var textRange;
- element.focus();
- if ( element.selectionStart !== undefined ) {
- element.selectionStart = element.selectionEnd =
element.value.length;
- } else if ( element.createTextRange ) {
- textRange = element.createTextRange();
- textRange.collapse( false );
- textRange.select();
- }
-};
-
-/**
* Get a localized message.
*
* @param {string} key Message key
--
To view, visit https://gerrit.wikimedia.org/r/232777
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I44f43f312c78df718114f42b93a34ce31f35cadb
Gerrit-PatchSet: 1
Gerrit-Project: VisualEditor/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Catrope <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits