MCPcopy Create free account
hub / github.com/jipegit/OSXAuditor / ScrollSpy

Function ScrollSpy

bootstrap/js/bootstrap.js:1553–1565  ·  view source on GitHub ↗
(element, options)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

$Function · 0.50

Tested by

no test coverage detected