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
5abe33f5
Commit
5abe33f5
authored
12 years ago
by
fat
Browse files
Options
Download
Email Patches
Plain Diff
reset carousel in the case that it is reinstantiated twice
parent
6b67a836
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/bootstrap-carousel.js
+1
-1
js/bootstrap-carousel.js
with
1 addition
and
1 deletion
+1
-1
js/bootstrap-carousel.js
+
1
-
1
View file @
5abe33f5
...
@@ -164,7 +164,7 @@
...
@@ -164,7 +164,7 @@
if
(
!
data
)
$this
.
data
(
'
carousel
'
,
(
data
=
new
Carousel
(
this
,
options
)))
if
(
!
data
)
$this
.
data
(
'
carousel
'
,
(
data
=
new
Carousel
(
this
,
options
)))
if
(
typeof
option
==
'
number
'
)
data
.
to
(
option
)
if
(
typeof
option
==
'
number
'
)
data
.
to
(
option
)
else
if
(
action
)
data
[
action
]()
else
if
(
action
)
data
[
action
]()
else
if
(
options
.
interval
)
data
.
cycle
()
else
if
(
options
.
interval
)
data
.
pause
().
cycle
()
})
})
}
}
...
...
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