(options)
| 119 | |
| 120 | class TetherClass extends Evented { |
| 121 | constructor(options) { |
| 122 | super(); |
| 123 | this.position = this.position.bind(this); |
| 124 | |
| 125 | tethers.push(this); |
| 126 | |
| 127 | this.history = []; |
| 128 | |
| 129 | this.setOptions(options, false); |
| 130 | |
| 131 | TetherBase.modules.forEach((module) => { |
| 132 | if (!isUndefined(module.initialize)) { |
| 133 | module.initialize.call(this); |
| 134 | } |
| 135 | }); |
| 136 | |
| 137 | this.position(); |
| 138 | } |
| 139 | |
| 140 | setOptions(options, pos = true) { |
| 141 | const defaults = { |
no test coverage detected