Memory management in Backbone.js: Painlessly removing views

Categories: Tutorial
Comments: No Comments
Published on: March 12, 2013

It would be great if Backbone provided more tools or guidelines for garbage collecting views after leaving them, so that DOM nodes and event bindings are automatically removed. Don’t get me wrong…the events hash, undelegateEvents(), stopListening(), etc. are very helpful, but they’re hardly sufficient on their own. The solution I’ve implemented stands on the shoulders[...]

Using RequireJS + Handlebar templates for testing with fixtures

Categories: Uncategorized
Tags: No Tags
Comments: No Comments
Published on: February 21, 2013

If you’re using a thin server and thick client, you’re already writing most of your mark-up into the DOM dynamically. In the opposite scenario however, where the server is generating large chunks of the mark-up (and you can’t change anything about the environment), you’ll likely want to replicate parts of the DOM in order to[...]

Using jQuery $.Deferreds for dependency management

Categories: Tutorial
Comments: No Comments
Published on: February 20, 2013

After spending some quality time building apps with RequireJS – and seeing dozens of frameworks do similar things – I decided that I didn’t need a huge percentage of the functionality it provides, and was tired of having to work around it with unit testing, non-standard environments, etc. Working with $.Deferreds for other reasons one[...]

Welcome , today is Saturday, October 25, 2014