KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a following view var FullWindow = Backbone.View.extend({ initialize: function() { _.bindAll(this, 'detect_scroll'); }, // bind the events events : { "scroll" : "detect_scroll" }, detect_scroll: function() { console.log('detected'); } }); and I initialize it via var full_window = new FullWindow({el:$('body')}); But I don't think it's working. When I change the events to events : { "click" : "detect_scroll" }, It's fine. What's wrong?
Tags (comma-separated)
Save Edits
Cancel