mirror of https://github.com/twbs/bootstrap.git
Rename `fixtureId` to `FIXTURE_ID` in `js/tests/helpers` for consistency (#41150)
Co-authored-by: Julien Déramond <juderamond@gmail.com>
This commit is contained in:
parent
5708adc816
commit
b7f3d6a6be
|
@ -1,11 +1,11 @@
|
||||||
const fixtureId = 'fixture'
|
const FIXTURE_ID = 'fixture'
|
||||||
|
|
||||||
export const getFixture = () => {
|
export const getFixture = () => {
|
||||||
let fixtureElement = document.getElementById(fixtureId)
|
let fixtureElement = document.getElementById(FIXTURE_ID)
|
||||||
|
|
||||||
if (!fixtureElement) {
|
if (!fixtureElement) {
|
||||||
fixtureElement = document.createElement('div')
|
fixtureElement = document.createElement('div')
|
||||||
fixtureElement.setAttribute('id', fixtureId)
|
fixtureElement.setAttribute('id', FIXTURE_ID)
|
||||||
fixtureElement.style.position = 'absolute'
|
fixtureElement.style.position = 'absolute'
|
||||||
fixtureElement.style.top = '-10000px'
|
fixtureElement.style.top = '-10000px'
|
||||||
fixtureElement.style.left = '-10000px'
|
fixtureElement.style.left = '-10000px'
|
||||||
|
|
Loading…
Reference in New Issue