diff options
Diffstat (limited to 'js/bootstrap-affix.js')
-rw-r--r-- | js/bootstrap-affix.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/js/bootstrap-affix.js b/js/bootstrap-affix.js index 18d4fc9ad2..6020a19a58 100644 --- a/js/bootstrap-affix.js +++ b/js/bootstrap-affix.js @@ -68,6 +68,8 @@ /* AFFIX PLUGIN DEFINITION * ======================= */ + var old = $.fn.affix + $.fn.affix = function (option) { return this.each(function () { var $this = $(this) @@ -85,6 +87,15 @@ } + /* AFFIX NO CONFLICT + * ================= */ + + $.fn.affix.noConflict = function () { + $.fn.affix = old + return this + } + + /* AFFIX DATA-API * ============== */ |