aboutsummaryrefslogtreecommitdiff
path: root/js/bootstrap-carousel.js
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2011-12-20 18:02:47 -0800
committerJacob Thornton <[email protected]>2011-12-20 18:02:47 -0800
commit1ef5fa7d6b4e50230c0c12919b0a06a9a2ac07f1 (patch)
tree72a3b02a1755096a9737451dea3030f0da65197d /js/bootstrap-carousel.js
parent7df0d1c7d18a72f401094d08afa4eaa9142fe511 (diff)
downloadbootstrap-1ef5fa7d6b4e50230c0c12919b0a06a9a2ac07f1.tar.xz
bootstrap-1ef5fa7d6b4e50230c0c12919b0a06a9a2ac07f1.zip
giant refactor - all spec passing again...
Diffstat (limited to 'js/bootstrap-carousel.js')
-rw-r--r--js/bootstrap-carousel.js18
1 files changed, 5 insertions, 13 deletions
diff --git a/js/bootstrap-carousel.js b/js/bootstrap-carousel.js
index 9513b4cd2..e2b36884b 100644
--- a/js/bootstrap-carousel.js
+++ b/js/bootstrap-carousel.js
@@ -25,8 +25,8 @@
/* CAROUSEL CLASS DEFINITION
* ========================= */
- var Carousel = function ( el ) {
- $(el).delegate(dismiss, 'click', this.close)
+ var Carousel = function () {
+
}
Carousel.prototype = {
@@ -40,20 +40,12 @@
$.fn.carousel = function ( option ) {
return this.each(function () {
var $this = $(this)
- , data = $this.data('alert')
- if (!data) $this.data('alert', (data = new Alert(this)))
+ , data = $this.data('carousel')
+ if (!data) $this.data('carousel', (data = new Carousel(this)))
if (typeof option == 'string') data[option].call($this)
})
}
$.fn.carousel.Carousel = Carousel
-
- /* CAROUSEL DATA-API
- * ================= */
-
- // $(function () {
- // $('body').delegate(dismiss, 'click.alert.data-api', Alert.prototype.close)
- // })
-
-}( window.jQuery || window.ender ) \ No newline at end of file
+}( window.jQuery ) \ No newline at end of file