Oops: Forgot debugging information in scrolling handlers
This commit is contained in:
parent
a8b5716421
commit
d78898443d
|
@ -57,13 +57,11 @@ Discourse.Scrolling = Em.Mixin.create({
|
||||||
Discourse.ScrollingDOMMethods = {
|
Discourse.ScrollingDOMMethods = {
|
||||||
|
|
||||||
bindOnScroll: function(onScrollMethod) {
|
bindOnScroll: function(onScrollMethod) {
|
||||||
console.log("BOUND");
|
|
||||||
$(document).bind('touchmove.discourse', onScrollMethod);
|
$(document).bind('touchmove.discourse', onScrollMethod);
|
||||||
$(window).bind('scroll.discourse', onScrollMethod);
|
$(window).bind('scroll.discourse', onScrollMethod);
|
||||||
},
|
},
|
||||||
|
|
||||||
unbindOnScroll: function() {
|
unbindOnScroll: function() {
|
||||||
console.log("UNBOUND");
|
|
||||||
$(window).unbind('scroll.discourse');
|
$(window).unbind('scroll.discourse');
|
||||||
$(document).unbind('touchmove.discourse');
|
$(document).unbind('touchmove.discourse');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue