backbone-events
Backbone View events won't fire
I am using Backbone in a project and I am trying to get the events functionality of Backbone Views to work correctly. I have the following code (it is extracted out of my current application):[详细]
2023-04-12 09:32 分类:问答backbone.js events and el
Okay, so I\'ve read several other questions regarding Backbone views and events not being fired, however I\'m still not getting it sadly.I been messing with Backbone for about a day, so I\'m sure I\'m[详细]
2023-04-07 14:07 分类:问答Using backbone events on views not yet added to the DOM - rendering issue
Short story... I have nested views but only the top level view can work with events because I am only passing in the \'el\' property to the top level view.[详细]
2023-04-01 10:56 分类:问答backbone.js bound events not delegated to views
When I call the save method on my model the server returns me a new version of the object from the database (even if there have been errors whilst saving).[详细]
2023-03-15 18:09 分类:问答How to capture the key event from a view?
I\'m trying to capture the key event from a view as follows: myView = Backbone.View.extend({ el: $(\'#someDiv\'),[详细]
2023-03-06 07:20 分类:问答Add logging in Javascript without polluting source code
I want to introduce logging (for analytics) in a web-application without polluting the source code by inserting log statements all over the place. The application is Javascript heavy. In a Java applic[详细]
2023-03-05 01:49 分类:问答Backbone.js views delegateEvents do not get bound (sometimes)
I\'m using Backbone.js and sometimes the views events do not get bound correctly. I can check the event binding situation with $(viewselector).data() in jQuery. Most of the time there are events, som[详细]
2023-02-14 02:23 分类:问答Backbone.js: How do I identify the model of the parent view upon an event?
I have two collections instantiated: items and sections. Each section can have multiple items and each item can occur in more than one section.[详细]
2023-01-28 06:17 分类:问答Strange behavior with "this" in Backbone.js when binding to "add"/"remove" in a collection
I have the following two views based on Backbone.js pg.views.ItemList = Backbone.View.extend({ tagName:\"div\",[详细]
2023-01-27 12:12 分类:问答Unit testing file operations - where to maintain mock directory structure?
I\'m still new to Unit testing, and specifically PHPUnit as the testing framework. Suppose I\'m building a unit test for a resource loader class. The class looks for resources to load in two director[详细]
2022-12-24 13:51 分类:问答