aboutsummaryrefslogtreecommitdiff
path: root/js/bootstrap-scrollspy.js
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2011-12-21 18:39:02 -0600
committerMark Otto <[email protected]>2011-12-21 18:39:02 -0600
commit9fb380151d477f1741b7609ade7a9e7fd5450b2c (patch)
treea749f2b6917c09770af1586ae9f83e46115de7eb /js/bootstrap-scrollspy.js
parent12a0d69454a2831031035d19237d36d38bb2c2a9 (diff)
parenta5a98a8a984512011dac1216b432b86c6eff96a4 (diff)
downloadbootstrap-9fb380151d477f1741b7609ade7a9e7fd5450b2c.tar.xz
bootstrap-9fb380151d477f1741b7609ade7a9e7fd5450b2c.zip
Merge branch '2.0-wip' of github.com:twitter/bootstrap into 2.0-wip
Conflicts: bootstrap.css docs/javascript.html
Diffstat (limited to 'js/bootstrap-scrollspy.js')
-rw-r--r--js/bootstrap-scrollspy.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/bootstrap-scrollspy.js b/js/bootstrap-scrollspy.js
index 8248b6cbd..6201d4cef 100644
--- a/js/bootstrap-scrollspy.js
+++ b/js/bootstrap-scrollspy.js
@@ -27,11 +27,11 @@
function ScrollSpy( element ) {
var process = $.proxy(this.process, this)
- this.$scrollElement = $(element).bind('scroll.scroll.data-api', process)
+ this.$scrollElement = $(element).on('scroll.scroll.data-api', process)
this.selector = (this.$scrollElement.attr('data-target')
|| this.$scrollElement.attr('href')
|| '') + ' .nav li > a'
- this.$body = $('body').delegate(this.selector, 'click.scroll.data-api', process)
+ this.$body = $('body').on('click.scroll.data-api', this.selector, process)
this.refresh()
this.process()
@@ -103,7 +103,7 @@
})
}
- $.fn.scrollspy.ScrollSpy = ScrollSpy
+ $.fn.scrollspy.Constructor = ScrollSpy
/* SCROLLSPY DATA-API
@@ -111,4 +111,4 @@
$(function () { $('[data-spy="scroll"]').scrollspy() })
-}( window.jQuery || window.ender ) \ No newline at end of file
+}( window.jQuery ) \ No newline at end of file