Commit f333e64f authored by Robert Knight's avatar Robert Knight

Make `Adder#showAt` a method

parent 495e4e2e
......@@ -240,6 +240,7 @@ class Adder {
return {top, left, arrowDirection};
};
}
/**
* Show the adder at the given position and with the arrow pointing in
......@@ -248,7 +249,7 @@ class Adder {
* @param {number} left - Horizontal offset from left edge of viewport.
* @param {number} top - Vertical offset from top edge of viewport.
*/
this.showAt = (left, top, arrowDirection) => {
showAt(left, top, arrowDirection) {
this.element.className = classnames({
'annotator-adder': true,
'annotator-adder--arrow-down': arrowDirection === ARROW_POINTING_DOWN,
......@@ -282,7 +283,6 @@ class Adder {
this._enterTimeout = setTimeout(() => {
this.element.className += ' is-active';
}, 1);
};
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment