mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-27 22:09:04 +02:00
add noConflict functionality to all bootstrap plugins
This commit is contained in:
6
js/tests/unit/bootstrap-affix.js
vendored
6
js/tests/unit/bootstrap-affix.js
vendored
@@ -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')
|
||||
})
|
||||
|
Reference in New Issue
Block a user