aboutsummaryrefslogtreecommitdiff
path: root/js/bootstrap-carousel.js
diff options
context:
space:
mode:
authorfat <[email protected]>2012-12-07 17:06:01 -0500
committerfat <[email protected]>2012-12-07 17:06:01 -0500
commita7eb9c294a575b5471ddec45ae75e1d09f7ace4c (patch)
treee55d0f54282e2f9f41c7ba87254e2ab9928f10ee /js/bootstrap-carousel.js
parent1c5b8e967e2b421503bc010d4ed3b79406ea5b7b (diff)
downloadbootstrap-a7eb9c294a575b5471ddec45ae75e1d09f7ace4c.tar.xz
bootstrap-a7eb9c294a575b5471ddec45ae75e1d09f7ace4c.zip
add noConflict functionality to all bootstrap plugins
Diffstat (limited to 'js/bootstrap-carousel.js')
-rw-r--r--js/bootstrap-carousel.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/js/bootstrap-carousel.js b/js/bootstrap-carousel.js
index 099b66930..ba26a5cd4 100644
--- a/js/bootstrap-carousel.js
+++ b/js/bootstrap-carousel.js
@@ -141,6 +141,8 @@
/* CAROUSEL PLUGIN DEFINITION
* ========================== */
+ var old = $.fn.carousel
+
$.fn.carousel = function (option) {
return this.each(function () {
var $this = $(this)
@@ -162,6 +164,14 @@
$.fn.carousel.Constructor = Carousel
+ /* CAROUSEL NO CONFLICT
+ * ==================== */
+
+ $.fn.carousel.noConflict = function () {
+ $.fn.carousel = old
+ return this
+ }
+
/* CAROUSEL DATA-API
* ================= */