Friday, January 13, 2012

What is a model? - Backbone.js Tutorials

What is a model? - Backbone.js Tutorials: "Now onto one of the more useful parts of using a library such as backbone. All attributes of a model can have listeners bound to them to detect changes to their values. In our initialize function we are going to bind a function call everytime we change the value of our attribute. In this case if the name of our “person” changes we will alert their new name."

'via Blog this'