MCPcopy Index your code
hub / github.com/shipshapecode/tether / disable

Method disable

src/js/tether.js:258–271  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

256 }
257
258 disable() {
259 const { classes, classPrefix } = this.options;
260 removeClass(this.target, getClass('enabled', classes, classPrefix));
261 removeClass(this.element, getClass('enabled', classes, classPrefix));
262 this.enabled = false;
263
264 if (!isUndefined(this.scrollParents)) {
265 this.scrollParents.forEach((parent) => {
266 if (parent && parent.removeEventListener) {
267 parent.removeEventListener('scroll', this.position);
268 }
269 });
270 }
271 }
272
273 destroy() {
274 this.disable();

Callers 7

setOptionsMethod · 0.95
destroyMethod · 0.95
tether.spec.jsFile · 0.80
intro.jsFile · 0.80
fireFunction · 0.80
jquery.jsFile · 0.80
drop.jsFile · 0.80

Calls 3

removeClassFunction · 0.90
getClassFunction · 0.90
isUndefinedFunction · 0.90

Tested by

no test coverage detected