diff options
| author | Johann-S <[email protected]> | 2018-06-07 21:43:04 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2019-02-20 22:05:45 +0200 |
| commit | 2b780787797da2bed2af0f95963be61e2b8e94a4 (patch) | |
| tree | c5efa177458d3a64b4a072137b6c171ac65bfcfd /js/src/carousel.js | |
| parent | 7eddee286eb76da4d057a59706e4c512206dab45 (diff) | |
| download | bootstrap-2b780787797da2bed2af0f95963be61e2b8e94a4.tar.xz bootstrap-2b780787797da2bed2af0f95963be61e2b8e94a4.zip | |
fix(data): do not use data object in our unit tests
Diffstat (limited to 'js/src/carousel.js')
| -rw-r--r-- | js/src/carousel.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/js/src/carousel.js b/js/src/carousel.js index fd6d5bf80..15a56bd76 100644 --- a/js/src/carousel.js +++ b/js/src/carousel.js @@ -579,6 +579,10 @@ class Carousel { event.preventDefault() } + + static _getInstance(element) { + return Data.getData(element, DATA_KEY) + } } /** @@ -597,7 +601,6 @@ EventHandler.on(window, Event.LOAD_DATA_API, () => { } }) - /** * ------------------------------------------------------------------------ * jQuery |
