MCPcopy Create free account
hub / github.com/idank/explainshell / ScrollSpy

Function ScrollSpy

explainshell/web/static/js/bootstrap.js:1549–1561  ·  view source on GitHub ↗
(element, options)

Source from the content-addressed store, hash-verified

1547 * ========================== */
1548
1549 function ScrollSpy(element, options) {
1550 var process = $.proxy(this.process, this)
1551 , $element = $(element).is('body') ? $(window) : $(element)
1552 , href
1553 this.options = $.extend({}, $.fn.scrollspy.defaults, options)
1554 this.$scrollElement = $element.on('scroll.scroll-spy.data-api', process)
1555 this.selector = (this.options.target
1556 || ((href = $(element).attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
1557 || '') + ' .nav li > a'
1558 this.$body = $('body')
1559 this.refresh()
1560 this.process()
1561 }
1562
1563 ScrollSpy.prototype = {
1564

Callers

nothing calls this directly

Calls 1

$Function · 0.70

Tested by

no test coverage detected