Skip to content

Commit d150290

Browse files
committed
[js] cleanup from b588bf5
1 parent b588bf5 commit d150290

File tree

1 file changed

+6
-5
lines changed
  • javascript/node/selenium-webdriver/lib

1 file changed

+6
-5
lines changed

javascript/node/selenium-webdriver/lib/input.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,11 @@ const Key = {
126126
* Note: when the low-level webdriver key handlers see Keys.NULL, active
127127
* modifier keys (CTRL/ALT/SHIFT/etc) release via a keyup event.
128128
*
129-
* @param {...string} var_args The key sequence to concatenate.
129+
* @param {...string} keys The key sequence to concatenate.
130130
* @return {string} The null-terminated key sequence.
131131
*/
132-
Key.chord = function(keys) {
133-
return Array.prototype.slice.call(arguments, 0).join('') + Key.NULL;
132+
Key.chord = function(...keys) {
133+
return keys.join('') + Key.NULL;
134134
};
135135

136136

@@ -179,7 +179,7 @@ Action.prototype.type;
179179
/** @type {(number|undefined)} */
180180
Action.prototype.duration;
181181

182-
/** @type {(number|undefined)} */
182+
/** @type {(string|undefined)} */
183183
Action.prototype.value;
184184

185185
/** @type {(Button|undefined)} */
@@ -315,7 +315,8 @@ class Sequence {
315315
}
316316

317317
/**
318-
* @return {boolean} whether this sequence contains any non-pause actions.
318+
* @return {boolean} whether this sequence is empty or contains only
319+
* {@linkplain #pause pause} actions.
319320
* @final
320321
*/
321322
isIdle() {

0 commit comments

Comments
 (0)