Skip to content

Commit

Permalink
Merge pull request addyosmani#46 from bnmrrs/patch-2
Browse files Browse the repository at this point in the history
Minor change to logging
  • Loading branch information
addyosmani committed Jan 20, 2012
2 parents 063545e + 1827192 commit d275b6e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ var Photo = Backbone.Model.extend({
console.log('this model has been initialized');
this.bind("change:title", function(){
var title = this.get("title");
console.log("My title has been changed to.." + title);
console.log("My title has been changed to.. " + title);
});
},
Expand All @@ -677,7 +677,7 @@ var Photo = Backbone.Model.extend({
var myPhoto = new Photo({ title:"Fishing at the lake", src:"fishing.jpg"});
myPhoto.setTitle('Fishing at sea');
//logs my title has been changed to.. Fishing at sea
//logs My title has been changed to.. Fishing at sea
```
**Validation**
Expand Down Expand Up @@ -706,6 +706,7 @@ var Photo = Backbone.Model.extend({
var myPhoto = new Photo();
myPhoto.set({ title: "On the beach" });
//logs Remember to set a source for your image!
```
Expand Down

0 comments on commit d275b6e

Please sign in to comment.