Bug 1410652 - Fix various API documentation in element module. r=whimboo

MozReview-Commit-ID: AaGnolglX5n

--HG--
extra : rebase_source : 5fccbd53ab96849df2aece2679db2df84aced804
This commit is contained in:
Andreas Tolfsen 2017-10-24 17:38:55 +01:00
Родитель 405edbbbd0
Коммит f9a44482f3
1 изменённых файлов: 9 добавлений и 9 удалений

Просмотреть файл

@ -95,8 +95,8 @@ element.Strategy = {
* Stores known/seen elements and their associated web element * Stores known/seen elements and their associated web element
* references. * references.
* *
* Elements are added by calling |add(el)| or |addAll(elements)|, and * Elements are added by calling {@link #add()} or {@link addAll()},
* may be queried by their web element reference using |get(element)|. * and may be queried by their web element reference using {@link get()}.
* *
* @class * @class
* @memberof element * @memberof element
@ -122,7 +122,7 @@ element.Store = class {
* *
* @return {Array.<WebElement>} * @return {Array.<WebElement>}
* List of the web element references associated with each element * List of the web element references associated with each element
* from |els|. * from <var>els</var>.
*/ */
addAll(els) { addAll(els) {
let add = this.add.bind(this); let add = this.add.bind(this);
@ -258,11 +258,11 @@ element.Store = class {
* document root or a given node. * document root or a given node.
* *
* If |timeout| is above 0, an implicit search technique is used. * If |timeout| is above 0, an implicit search technique is used.
* This will wait for the duration of |timeout| for the element * This will wait for the duration of <var>timeout</var> for the
* to appear in the DOM. * element to appear in the DOM.
* *
* See the |element.Strategy| enum for a full list of supported * See the {@link element.Strategy} enum for a full list of supported
* search strategies that can be passed to |strategy|. * search strategies that can be passed to <var>strategy</var>.
* *
* Available flags for <var>opts</var>: * Available flags for <var>opts</var>:
* *
@ -776,7 +776,7 @@ element.isSelected = function(el) {
* X- and Y coordinates. * X- and Y coordinates.
* *
* @throws TypeError * @throws TypeError
* If |xOffset| or |yOffset| are not numbers. * If <var>xOffset</var> or <var>yOffset</var> are not numbers.
*/ */
element.coordinates = function( element.coordinates = function(
node, xOffset = undefined, yOffset = undefined) { node, xOffset = undefined, yOffset = undefined) {
@ -813,7 +813,7 @@ element.coordinates = function(
* the target's bounding box. * the target's bounding box.
* *
* @return {boolean} * @return {boolean}
* True if if |el| is in viewport, false otherwise. * True if if <var>el</var> is in viewport, false otherwise.
*/ */
element.inViewport = function(el, x = undefined, y = undefined) { element.inViewport = function(el, x = undefined, y = undefined) {
let win = el.ownerGlobal; let win = el.ownerGlobal;