Skip to content

Commit 7675b87

Browse files
committed
remove left over method after #32692 merge
1 parent 2a51370 commit 7675b87

File tree

2 files changed

+0
-46
lines changed

2 files changed

+0
-46
lines changed

js/src/tooltip.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -398,18 +398,6 @@ class Tooltip extends BaseComponent {
398398
return this._resolvePossibleFunction(this._config.title) || this._element.getAttribute('title')
399399
}
400400

401-
updateAttachment(attachment) {
402-
if (attachment === 'right') {
403-
return 'end'
404-
}
405-
406-
if (attachment === 'left') {
407-
return 'start'
408-
}
409-
410-
return attachment
411-
}
412-
413401
// Private
414402
_initializeOnDelegatedTarget(event, context) {
415403
return context || this.constructor.getOrCreateInstance(event.delegateTarget, this._getDelegateConfig())

js/tests/unit/tooltip.spec.js

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,40 +1082,6 @@ describe('Tooltip', () => {
10821082
})
10831083
})
10841084

1085-
describe('updateAttachment', () => {
1086-
it('should use end class name when right placement specified', done => {
1087-
fixtureEl.innerHTML = '<a href="#" rel="tooltip" title="Another tooltip">'
1088-
1089-
const tooltipEl = fixtureEl.querySelector('a')
1090-
const tooltip = new Tooltip(tooltipEl, {
1091-
placement: 'right'
1092-
})
1093-
1094-
tooltipEl.addEventListener('inserted.bs.tooltip', () => {
1095-
expect(tooltip.getTipElement().classList.contains('bs-tooltip-auto')).toEqual(true)
1096-
done()
1097-
})
1098-
1099-
tooltip.show()
1100-
})
1101-
1102-
it('should use start class name when left placement specified', done => {
1103-
fixtureEl.innerHTML = '<a href="#" rel="tooltip" title="Another tooltip">'
1104-
1105-
const tooltipEl = fixtureEl.querySelector('a')
1106-
const tooltip = new Tooltip(tooltipEl, {
1107-
placement: 'left'
1108-
})
1109-
1110-
tooltipEl.addEventListener('inserted.bs.tooltip', () => {
1111-
expect(tooltip.getTipElement().classList.contains('bs-tooltip-auto')).toEqual(true)
1112-
done()
1113-
})
1114-
1115-
tooltip.show()
1116-
})
1117-
})
1118-
11191085
describe('setContent', () => {
11201086
it('should do nothing if the element is null', () => {
11211087
fixtureEl.innerHTML = '<a href="#" rel="tooltip" title="Another tooltip">'

0 commit comments

Comments
 (0)