John Smart
John Smart
Can you set without making attribute changes dirty? > On Aug 1, 2014, at 7:28 AM, Jeremy Ashkenas [email protected] wrote: > > Reset is an escape hatch, that allows you...
The reason I needed this is because the world is changing. Backbone assumes Model#fetch() XHR is the primary method for loading data from the server, but we're doing a lot...
@jridgewell because #set will make the attributes dirty. Let's try using set and see what happens: ``` function callback(data_from_server) { console.info(data_from_server); m = new Backbone.Model(data_from_server); m.set('foo', 'what?', {silent: true}); console.info(m.changedAttributes())...
I ended up writing a different monkey patch for this feature: ``` /** * Allow for side-loading data from the server, calling the sync event afterwards. * @param attributes *...
As far as I can tell, Backbone's data model is incompatible with REST because there is no way to safely model sever state on the client after a model has...
I have some thoughts on these two points: > Monkey-patching the `Context` or `Request` or `Response` object sure is possible, but I'd love to have nicely typed generics for my...
I'm getting this same error and have noticed that it has something to do with UTF-8 characters in some source files. I think simplecov is opening files in ascii text...
Hi, yes the latest version branch should be best. That is a typo, and I didn't think it would be worth a new version commit to fix. :-/ On Thursday,...
Are you removing the elements from DOM and disposing of them during navigation? Scollspy works by inspecting each element that matches the scollspy selector upon each scroll tick. So, unless...
Not sure if this helps, but here's a partial definition file that probably has bugs in it, but will at least compile: ``` ///****************** /// raven v0.12.x ///****************** /// declare...