diff options
author | fat <jacobthornton@gmail.com> | 2012-12-08 02:06:01 +0400 |
---|---|---|
committer | fat <jacobthornton@gmail.com> | 2012-12-08 02:06:01 +0400 |
commit | a7eb9c294a575b5471ddec45ae75e1d09f7ace4c (patch) | |
tree | e55d0f54282e2f9f41c7ba87254e2ab9928f10ee /js/bootstrap-scrollspy.js | |
parent | 1c5b8e967e2b421503bc010d4ed3b79406ea5b7b (diff) |
add noConflict functionality to all bootstrap plugins
Diffstat (limited to 'js/bootstrap-scrollspy.js')
-rw-r--r-- | js/bootstrap-scrollspy.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/js/bootstrap-scrollspy.js b/js/bootstrap-scrollspy.js index 34f7748684..fd82872c5c 100644 --- a/js/bootstrap-scrollspy.js +++ b/js/bootstrap-scrollspy.js @@ -121,6 +121,8 @@ /* SCROLLSPY PLUGIN DEFINITION * =========================== */ + var old = $.fn.scrollspy + $.fn.scrollspy = function (option) { return this.each(function () { var $this = $(this) @@ -138,6 +140,15 @@ } + /* SCROLLSPY NO CONFLICT + * ===================== */ + + $.fn.scrollspy.noConflict = function () { + $.fn.scrollspy = old + return this + } + + /* SCROLLSPY DATA-API * ================== */ |