Monday, February 13, 2012

An Intro to Backbone.js: Part 2 – Controllers and Views - Liquid Media

An Intro to Backbone.js: Part 2 – Controllers and Views - Liquid Media: "DonutView = Backbone.View.extend({
  tagName : "div",
  className : "donut",
 
  render : function() {
    this.el.innerHTML = this.model.get('name');
 
    return this;
  }
});"

'via Blog this'