We have a large Marionette App, that uses Backbone.trackit to monitor unsaved changes in our Models.  We now have some nested models, in fact we have a Model, with a Collection of Models, that contain a Collection of Models.  trackit doesn't supp...
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...
I think what I want to do is pretty simple I just don't know how to do it. I would like to fire my own event when one of my models attributes changes for the purpose of passing some data to the event handler (whether the change was an increase or...
I bind on the change event of my backbone models like this.  this.model.on( "change", this.render, this );   Sometimes I want to fetch the latest version of the model and forcibly render the view.  So I do this  this.model.fetch();   Unfortun...
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 am trying to implement a simple app which is able to get a collection for a given object_id. The GET response from the server looks like this:      [     {object_id: 1, text: "msg1"},      {object_id: 1, text: "msg2"},      {object_...
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...
First of all, I did some search and no answer on stackoverflow/google provided me the thing I wanted.  Here's a snippet of my code:  //in the view this.collection.on("add",triggerthis) this.collection.add(predefinedModel) triggerthis: fun...
I am trying to learn the new changes they did in Backbone 0.9.9.  Currently I got problems to understand the difference between listenTo and on:  listenTo  var View = Backbone.View.extend({      tagName: "div",      intialize: function() {...
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'...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.