I have a Backbone app that uses nested collections (at least that's how I think they're called).  In my particular case there are tabs and subtabs, and each tab (model) contains a collection of subtab (model).  For those who're more famil...
Edit  According the Hammer Github page this bug was due to Manager leaks and should be fixed in the 2.0.5 version - this version is not built online but one can built it by himself. More info can be found here  =======================================...
I'm new to Backbone and am using it with jQuery in Rails. In my view's render method, I use delegateEvents to bind an event handler to the "click" event of a button with id btn-go. This button is itself rendered by the view in questio...
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 missing something basic.  Here'...
I am trying to update my view whenever I add a new model to my collection. My first question is do I automatically add a model to my collection when I save that model, like:   PostsApp.Views.Form = Backbone.View.extend({     template: _.template($(&#...
Imagine the following simple model and view:  app.Messages = Backbone.Model.extend({     defaults: function() {         return {             message: "an empty message…",             messageActive: false         };     } });  app.MessageVie...
I have a filter working on my backbone collection.  Type a search in the search box and the list live filters.  Works great, or so I thought.  When I looked at the memory heap snapshot in chrome, I can see the memory leaking with each search... 6 meg...
I am learning Marionette / Backbone with the excellent book "Backbone.Marionette.js: A Gentle Introduction".  In the chapter 'Handling Data Latency', the Author (David Sulc) uses JQuery deferreds objects / promises to pass data from t...
Need to call .delegateEvents() on all child views inside a parent "collection" view in order to re-delegate events after having removed the parent view from the page and then put it back on.  I can see two ways of doing this, both of which do...
To make it easier to read i put everything under the initialize function. Is there something wrong here? The alert gets triggered so it's not the condition. I have the share actions hidden and would like to show them on Hover on desktop and Tap o...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.