How are Bootstrap JS instances stored in DOM elements? #42058
Unanswered
o-alquimista
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When you call
getInstanceorgetOrCreateInstanceon an HTML element, where is the instance coming from?It's just for curiosity. I couldn't figure that out searching through the source code.
Also, what happens to the instance when you remove the element from the DOM? Is it garbage-collected?
Beta Was this translation helpful? Give feedback.
All reactions