MCPcopy Create free account
hub / github.com/apache/cloudstack / Affix

Function Affix

tools/ngui/static/bootstrap/js/bootstrap.js:1290–1297  ·  view source on GitHub ↗
(element, options)

Source from the content-addressed store, hash-verified

1288 * ====================== */
1289
1290 var Affix = function (element, options) {
1291 this.options = $.extend({}, $.fn.affix.defaults, options)
1292 this.$window = $(window)
1293 .on('scroll.affix.data-api', $.proxy(this.checkPosition, this))
1294 .on('click.affix.data-api', $.proxy(function () { setTimeout($.proxy(this.checkPosition, this), 1) }, this))
1295 this.$element = $(element)
1296 this.checkPosition()
1297 }
1298
1299 Affix.prototype.checkPosition = function () {
1300 if (!this.$element.is(':visible')) return

Callers

nothing calls this directly

Calls 3

$Function · 0.85
extendMethod · 0.80
onMethod · 0.80

Tested by

no test coverage detected