So have been doing loads of work learning about Backbone, Javascript and related tech of late. The plan of action at the moment is to get more familiar with Jasmine,…
Lots of learning on this project.. I got it working and then have gone back to refactor it to see if I can tidy it up. As I was only…
Silly thing tripped me up today so think its worth noting.. got the answer from here eventually http://stackoverflow.com/questions/18661395/backbone-select-change-event-not-firing Effectively what was happening is that I was injecting content into the el and…
If you need routes with trailing slashes to be recognized you do for example Reference: http://stackoverflow.com/questions/9600390/backbone-js-route-optional-parameter
Random reading around JS today and I found this excellent resource that outlines typical patterns used in JS – definitely worth investigating & understanding. http://shichuan.github.io/javascript-patterns/
Project going ok so far.. handy tip today is abut using underscore’s where on a collection checking against multiple attributes. e.g. below: Also doing a good bit around routing and…
Have said it before and will say it again.. the people on StackOverflow are AWESOME! Got a REALLY useful overview of the Event Driven Approach and how it applies to…
Was doing some filtering on a collection and came across a problem where I wanted to have a variable as the key in ‘where’ but it wouldn’t take and I…
Quick but handy to know… when within a collections (and possibly views haven’t tried that yet) when you’re running a custom function as below on a click (checkit).. then you…
Useful stackoverflow question about how I had originally set it up: http://stackoverflow.com/questions/27722019/backbonejs-collection-not-populated-but-fetch-works The issue comes when using json as its async and the collection hasn’t been populated by the time…