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/tests/unit/bootstrap-affix.js | |
parent | 1c5b8e967e2b421503bc010d4ed3b79406ea5b7b (diff) |
add noConflict functionality to all bootstrap plugins
Diffstat (limited to 'js/tests/unit/bootstrap-affix.js')
-rw-r--r-- | js/tests/unit/bootstrap-affix.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/js/tests/unit/bootstrap-affix.js b/js/tests/unit/bootstrap-affix.js index bc25df9917..c978878903 100644 --- a/js/tests/unit/bootstrap-affix.js +++ b/js/tests/unit/bootstrap-affix.js @@ -2,6 +2,12 @@ $(function () { module("bootstrap-affix") + test("should provide no conflict", function () { + var affix = $.fn.affix.noConflict() + ok(!$.fn.affix, 'affix was set back to undefined (org value)') + $.fn.affix = affix + }) + test("should be defined on jquery object", function () { ok($(document.body).affix, 'affix method is defined') }) |