diff options
| author | fat <[email protected]> | 2012-12-07 17:06:01 -0500 |
|---|---|---|
| committer | fat <[email protected]> | 2012-12-07 17:06:01 -0500 |
| commit | a7eb9c294a575b5471ddec45ae75e1d09f7ace4c (patch) | |
| tree | e55d0f54282e2f9f41c7ba87254e2ab9928f10ee /js/bootstrap-tooltip.js | |
| parent | 1c5b8e967e2b421503bc010d4ed3b79406ea5b7b (diff) | |
| download | bootstrap-a7eb9c294a575b5471ddec45ae75e1d09f7ace4c.tar.xz bootstrap-a7eb9c294a575b5471ddec45ae75e1d09f7ace4c.zip | |
add noConflict functionality to all bootstrap plugins
Diffstat (limited to 'js/bootstrap-tooltip.js')
| -rw-r--r-- | js/bootstrap-tooltip.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/js/bootstrap-tooltip.js b/js/bootstrap-tooltip.js index b3325b238..a08952a4c 100644 --- a/js/bootstrap-tooltip.js +++ b/js/bootstrap-tooltip.js @@ -250,6 +250,8 @@ /* TOOLTIP PLUGIN DEFINITION * ========================= */ + var old = $.fn.tooltip + $.fn.tooltip = function ( option ) { return this.each(function () { var $this = $(this) @@ -273,4 +275,13 @@ , html: false } + + /* TOOLTIP NO CONFLICT + * =================== */ + + $.fn.tooltip.noConflict = function () { + $.fn.tooltip = old + return this + } + }(window.jQuery);
\ No newline at end of file |
