diaspora/diaspora — pull request #3713 by davecocoa (2012-11-07 21:28:44+00:00)
Title: port tagFollowings to BackBone

This is a 'first attempt' at converting the tag followings to Backbone, it's functional, but I feel like I probably went against the current code style in places. This relates to issue #3630 and Issue #2639

Also, would love to setup pre-loading of the JSON instead of a request after page-load, but I couldn't see where that would fit best / couldn't find an example. This looks like a good pattern to follow :
http://stackoverflow.com/questions/7336383/clueless-on-preloading-collection-from-server-using-backbone-js-and-tastypie?rq=1

I suppose we could have a :javascript tag in the haml view?

All comments welcome anyway, this is considered a work-in-progress =)

also, /tags/{{name}} is not a link format that will work on every deployment, I need to learn how to make a proper URL there...