Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
0b726de9
Commit
0b726de9
authored
6 years ago
by
Johann-S
Committed by
XhmikosR
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
fix(carousel): on load page create a carousel
parent
83cea3ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
js/src/carousel.js
+1
-1
js/src/carousel.js
js/src/dom/data.js
+1
-1
js/src/dom/data.js
with
2 additions
and
2 deletions
+2
-2
js/src/carousel.js
+
1
-
1
View file @
0b726de9
...
@@ -597,7 +597,7 @@ EventHandler
...
@@ -597,7 +597,7 @@ EventHandler
EventHandler
.
on
(
window
,
Event
.
LOAD_DATA_API
,
()
=>
{
EventHandler
.
on
(
window
,
Event
.
LOAD_DATA_API
,
()
=>
{
const
carousels
=
Util
.
makeArray
(
SelectorEngine
.
find
(
Selector
.
DATA_RIDE
))
const
carousels
=
Util
.
makeArray
(
SelectorEngine
.
find
(
Selector
.
DATA_RIDE
))
for
(
let
i
=
0
,
len
=
carousels
.
length
;
i
<
len
;
i
++
)
{
for
(
let
i
=
0
,
len
=
carousels
.
length
;
i
<
len
;
i
++
)
{
Carousel
.
_carouselInterface
.
call
(
carousels
[
i
],
Data
.
getData
(
carousels
[
i
],
DATA_KEY
))
Carousel
.
_carouselInterface
(
carousels
[
i
],
Data
.
getData
(
carousels
[
i
],
DATA_KEY
))
}
}
})
})
...
...
This diff is collapsed.
Click to expand it.
js/src/dom/data.js
+
1
-
1
View file @
0b726de9
...
@@ -28,7 +28,7 @@ const Data = (() => {
...
@@ -28,7 +28,7 @@ const Data = (() => {
storeData
[
element
.
key
.
id
]
=
data
storeData
[
element
.
key
.
id
]
=
data
},
},
get
(
element
,
key
)
{
get
(
element
,
key
)
{
if
(
typeof
element
===
'
undefined
'
||
typeof
element
.
key
===
'
undefined
'
)
{
if
(
!
element
||
typeof
element
.
key
===
'
undefined
'
)
{
return
null
return
null
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment