vendor/assets/javascripts/twitter/bootstrap/bootstrap-scrollspy.js in twitter-bootstrap-rails-2.0.8 vs vendor/assets/javascripts/twitter/bootstrap/bootstrap-scrollspy.js in twitter-bootstrap-rails-2.0.9
- old
+ new
@@ -1,7 +1,7 @@
/* =============================================================
- * bootstrap-scrollspy.js v2.0.3
+ * bootstrap-scrollspy.js v2.0.4
* http://twitter.github.com/bootstrap/javascript.html#scrollspy
* =============================================================
* Copyright 2012 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -33,10 +33,10 @@
this.options = $.extend({}, $.fn.scrollspy.defaults, options)
this.$scrollElement = $element.on('scroll.scroll.data-api', process)
this.selector = (this.options.target
|| ((href = $(element).attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
|| '') + ' .nav li > a'
- this.$body = $('body').on('click.scroll.data-api', this.selector, process)
+ this.$body = $('body')
this.refresh()
this.process()
}
ScrollSpy.prototype = {
\ No newline at end of file