(content, positionOrTargetNode)
| 54 | } |
| 55 | |
| 56 | _setData(content, positionOrTargetNode) { |
| 57 | if (positionOrTargetNode.nodeType === undefined) { |
| 58 | this._targetNode = undefined; |
| 59 | const position = positionOrTargetNode; |
| 60 | this._setPosition( |
| 61 | position, this._useRight(position.x), |
| 62 | this._useBottom(position.y)); |
| 63 | } else { |
| 64 | this._setTargetNode(positionOrTargetNode); |
| 65 | } |
| 66 | this._setContent(content); |
| 67 | } |
| 68 | |
| 69 | _setTargetNode(targetNode) { |
| 70 | this._intersectionObserver.disconnect(); |
no test coverage detected