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

Method constructor

src/js/tether.js:121–138  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

119
120class 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 = {

Callers 1

jquery.jsFile · 0.80

Calls 3

setOptionsMethod · 0.95
positionMethod · 0.95
isUndefinedFunction · 0.90

Tested by

no test coverage detected