(k, getter)
| 223 | } |
| 224 | |
| 225 | cache(k, getter) { |
| 226 | // More than one module will often need the same DOM info, so |
| 227 | // we keep a cache which is cleared on each position call |
| 228 | if (isUndefined(this._cache)) { |
| 229 | this._cache = {}; |
| 230 | } |
| 231 | |
| 232 | if (isUndefined(this._cache[k])) { |
| 233 | this._cache[k] = getter.call(this); |
| 234 | } |
| 235 | |
| 236 | return this._cache[k]; |
| 237 | } |
| 238 | |
| 239 | enable(pos = true) { |
| 240 | const { classes, classPrefix } = this.options; |
no test coverage detected