aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/bootstrap-tooltip.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/tests/unit/bootstrap-tooltip.js
parent1c5b8e967e2b421503bc010d4ed3b79406ea5b7b (diff)
downloadbootstrap-a7eb9c294a575b5471ddec45ae75e1d09f7ace4c.tar.xz
bootstrap-a7eb9c294a575b5471ddec45ae75e1d09f7ace4c.zip
add noConflict functionality to all bootstrap plugins
Diffstat (limited to 'js/tests/unit/bootstrap-tooltip.js')
-rw-r--r--js/tests/unit/bootstrap-tooltip.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/tests/unit/bootstrap-tooltip.js b/js/tests/unit/bootstrap-tooltip.js
index bbdf3ce80..ba5134743 100644
--- a/js/tests/unit/bootstrap-tooltip.js
+++ b/js/tests/unit/bootstrap-tooltip.js
@@ -2,6 +2,12 @@ $(function () {
module("bootstrap-tooltip")
+ test("should provide no conflict", function () {
+ var tooltip = $.fn.tooltip.noConflict()
+ ok(!$.fn.tooltip, 'tooltip was set back to undefined (org value)')
+ $.fn.tooltip = tooltip
+ })
+
test("should be defined on jquery object", function () {
var div = $("<div></div>")
ok(div.tooltip, 'popover method is defined')