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

Method getTargetBounds

src/js/tether.js:209–219  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

207 }
208
209 getTargetBounds() {
210 if (!isUndefined(this.targetModifier)) {
211 if (this.targetModifier === 'visible') {
212 return getVisibleBounds(this.bodyElement, this.target);
213 } else if (this.targetModifier === 'scroll-handle') {
214 return getScrollHandleBounds(this.bodyElement, this.target);
215 }
216 } else {
217 return getBounds(this.bodyElement, this.target);
218 }
219 }
220
221 clearCache() {
222 this._cache = {};

Callers 3

positionMethod · 0.95
positionFunction · 0.80
positionFunction · 0.80

Calls 4

isUndefinedFunction · 0.90
getVisibleBoundsFunction · 0.90
getScrollHandleBoundsFunction · 0.90
getBoundsFunction · 0.90

Tested by

no test coverage detected