MCPcopy Create free account
hub / github.com/kenberkeley/react-demo / Affix

Function Affix

static/bootstrap/js/bootstrap.js:2217–2230  ·  view source on GitHub ↗
(element, options)

Source from the content-addressed store, hash-verified

2215 // ======================
2216
2217 var Affix = function (element, options) {
2218 this.options = $.extend({}, Affix.DEFAULTS, options)
2219
2220 this.$target = $(this.options.target)
2221 .on('scroll.bs.affix.data-api', $.proxy(this.checkPosition, this))
2222 .on('click.bs.affix.data-api', $.proxy(this.checkPositionWithEventLoop, this))
2223
2224 this.$element = $(element)
2225 this.affixed = null
2226 this.unpin = null
2227 this.pinnedOffset = null
2228
2229 this.checkPosition()
2230 }
2231
2232 Affix.VERSION = '3.3.5'
2233

Callers

nothing calls this directly

Calls 1

$Function · 0.85

Tested by

no test coverage detected