Esanders has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/297801

Change subject: Better documentation of the data argument in sequences
......................................................................

Better documentation of the data argument in sequences

Bug: T139574
Change-Id: If04a72bfc954c4cd70eaa2348b3c595ebf6d1067
---
M src/ui/ve.ui.Sequence.js
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/VisualEditor/VisualEditor 
refs/changes/01/297801/1

diff --git a/src/ui/ve.ui.Sequence.js b/src/ui/ve.ui.Sequence.js
index 168007d..0b178a6 100644
--- a/src/ui/ve.ui.Sequence.js
+++ b/src/ui/ve.ui.Sequence.js
@@ -12,7 +12,9 @@
  * @constructor
  * @param {string} name Symbolic name
  * @param {string} commandName Command name this sequence executes
- * @param {string|Array|RegExp} data Data to match
+ * @param {string|Array|RegExp} data Data to match. String, linear data array, 
or regular expression.
+ *         When using a RegularExpression always match the end of the sequence 
with a '$' so that
+ *         only sequences next to the user's cursor match.
  * @param {number} [strip=0] Number of data elements to strip after execution
  *        (from the right)
  * @param {boolean} [setSelection=false] Whether to set the selection to the

-- 
To view, visit https://gerrit.wikimedia.org/r/297801
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If04a72bfc954c4cd70eaa2348b3c595ebf6d1067
Gerrit-PatchSet: 1
Gerrit-Project: VisualEditor/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Esanders <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to