Categories
backbonejs javascript

A Simple Backbone.js View

This is our html which includes a template within script tags. A Simple Backbone.js View This one capsule is a definitive response to man’s all sexual issue. viagra viagra http://www.midwayfire.com/minutes/11-22-08%20sp%20mt.pdf viagra no prescription midwayfire.com Science has revealed how the healthy stem cells travel in the system to regulate mood, appetite, growth etc. The main reason […]

Categories
backbonejs javascript

A Simple Backbone.js Model

I have been reintroducing myself to Backbone.js and I thought I would post small snippets for reference. [code lang=”js” autolinks=”false” classname=”codeClass” collapse=”false” firstline=”1″ gutter=”true” light=”false” padlinenumbers=”false” smarttabs=”true” tabsize=”4″] // Bare model var Person = Backbone.Model.extend({}); // Model with some default values var Person = Backbone.Model.extend({ defaults: { name: "unknown", drinks: "water" } }); // Model […]